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

Cache all strings #700

Closed
wants to merge 2 commits into from
Closed

Cache all strings #700

wants to merge 2 commits into from

Conversation

matray
Copy link

@matray matray commented Jul 2, 2023

Re-using codecs becomes a really memory costly operation, even lightly CPU intensive too - creating codec strings over and over again that can't be de-duped or reused. This is an attempt to cache all strings used for "names". Very open to feedback here.

Before submitting a pull request, please make sure the following is done:

  • Fork the repository and create your branch from master.
  • Run npm install in the repository root.
  • If you've fixed a bug or added code that should be tested, add tests!
  • Ensure the test suite passes (npm test).

Note. If you find a typo in the documentation, make sure to modify the corresponding source (docs are generated).

@matray matray closed this Jul 2, 2023
@matray matray reopened this Jul 12, 2023
@matray
Copy link
Author

matray commented Jul 12, 2023

Re-opening this one, it's not the most fp implementation, but I'm open to feedback there :)

@matray
Copy link
Author

matray commented Jul 12, 2023

Ha! closing again, discussed internally with my team, looks to be user error that these are being created over and over again.

@matray matray closed this Jul 12, 2023
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.

None yet

1 participant