eints has a lot of duplicated strings, especially when loading
from JSON. For example, every language has a copy of the base-string
it belongs to. Without deduplication, OpenTTD uses ~350MB RAM. With
deduplication this drops to ~280MB RAM, a good 60MB RAM gain.
eints has a lot of duplicated strings, especially when loading from JSON. For example, every language has a copy of the base-string it belongs to. Without deduplication, OpenTTD uses ~350MB RAM. With deduplication this drops to ~280MB RAM, a good 60MB RAM gain.