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

Small performance and memory usage tweaks #736

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

rgallardo-netflix
Copy link
Contributor

Refactor PropertyImpl#get() to avoid an allocation on each call. The new implementation should be marginally faster.

Removed a few unnecessary objects from each instance of Property objects returned from the DefaultPropertyFactory. This will remove a few dozen bytes from each Property instance.

Refactor PropertyImpl#get() to avoid an allocation on each call. The new implementation should be marginally faster.

Removed a few unnecessary objects from each instance of Property objects returned from the DefaultPropertyFactory. This will remove a few dozen bytes from each Property instance.
This introduces a chance for duplicate work in cache updating. We choose to accept the risk, under the assumption that users will not register interpolators or decoders that are non-idempotent or overly expensive.
@rgallardo-netflix rgallardo-netflix merged commit 41cd26d into 2.x Oct 2, 2024
10 checks passed
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.

3 participants