Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor String Vars #3141

Merged
merged 4 commits into from
Nov 17, 2023
Merged

Refactor String Vars #3141

merged 4 commits into from
Nov 17, 2023

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Nov 2, 2023

Noteworthy changes:

  • unordered_map instead of vector to reduce huge waste of memory for sparse string usage (e.g. starting at 1000)
  • StringView used where possible to reduce copying
  • Bugfix: Setting variables didn't refresh the interpreter

@fdelapena fdelapena added the Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc. label Nov 2, 2023
@jetrotal
Copy link
Contributor

Hi, we spoke about supporting more file types for the StrVars load/save files,
maybe those change could also fit this pr:

image
image

@fdelapena fdelapena merged commit e614030 into EasyRPG:master Nov 17, 2023
12 checks passed
@Ghabry Ghabry deleted the maniac/stringvars branch September 2, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc. Refactor
Development

Successfully merging this pull request may close these issues.

3 participants