Closed matray closed 1 year ago
Re-opening this one, it's not the most fp implementation, but I'm open to feedback there :)
Ha! closing again, discussed internally with my team, looks to be user error that these are being created over and over again.
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:
master
.npm install
in the repository root.npm test
).Note. If you find a typo in the documentation, make sure to modify the corresponding source (docs are generated).