You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases when you know you have a limited set of keys and have a very large volume of incoming messages sharing the same keys, it may be beneficial to store a mapping of byte[] to Strings, this can reduce the object creation from decoding as well as allow you to utilize the same string objects in memory.
Implementation could be pretty simple, but would be nice to add a dependency on a cache library(Guava Cache or Caffeine) to avoid having to roll a new one, thoughts?
Actually I just realized that the actual implementation of the cache can be left up to the user, so I will submit a pull request with the interface that can optionally be implemented by end users
In some cases when you know you have a limited set of keys and have a very large volume of incoming messages sharing the same keys, it may be beneficial to store a mapping of byte[] to Strings, this can reduce the object creation from decoding as well as allow you to utilize the same string objects in memory.
For example Jackson allows the JsonFactory feature flag of: https://fasterxml.github.io/jackson-core/javadoc/2.8/com/fasterxml/jackson/core/JsonFactory.Feature.html#INTERN_FIELD_NAMES
The text was updated successfully, but these errors were encountered: