Skip to content

Conversation

bgrainger
Copy link

This addresses a "TODO" in the code:

  • Use BinaryPrimitives instead of BinaryWriter to write directly to the array instead of via a MemoryStream.
  • Move allocation of the key outside the loop to avoid creating unnecessary temporary objects.

For a local Minecraft map, this change reduced the first phase from 3:33.6 to 3:21.7.

Use BinaryPrimitives instead of BinaryWriter to write directly to the array instead of via a MemoryStream.

Move allocation of the key outside the loop to avoid creating unnecessary temporary objects.
Copy link

@DocBrown101 DocBrown101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good, would be nice if that could be released.

@chrisl8
Copy link

chrisl8 commented Jul 1, 2022

Yeah, this repo seems abandoned.

If I learn how to put binaries up I could make temporary releases until the original author has time again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants