Skip to content

Use static string maps in terrain generation - #3074

Merged
IntegratedQuantum merged 7 commits into
PixelGuys:masterfrom
IntegratedQuantum:static_string_map
May 11, 2026
Merged

IntegratedQuantum merged 7 commits into
PixelGuys:masterfrom
IntegratedQuantum:static_string_map

Conversation

@IntegratedQuantum

@IntegratedQuantum IntegratedQuantum commented May 11, 2026 •

Copy link
Copy Markdown
Member

These can be created at compile-time allowing the removal of runtime allocation for them, also the StaticStringMap is used for stringToEnum, so we can expect this to get some performance improvements in the future, and maybe even support for perfect hashing.

  • implement it for the other generators

progress towards #2748

@IntegratedQuantum
IntegratedQuantum merged commit 73c5e71 into PixelGuys:master May 11, 2026
1 check passed
@IntegratedQuantum
IntegratedQuantum deleted the static_string_map branch May 11, 2026 15:30
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.

1 participant