This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 67
Intern Property instances so reference equality is guaranteed #22
Open
magneticflux-
wants to merge
9
commits into
CaffeineMC:1.16.x
Choose a base branch
from
magneticflux-:property-interning
base: 1.16.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Feb 7, 2021
-
Add caching of BooleanProperty instances
Uses WeakReferences, so properties can be GC'd if necessary
Configuration menu - View commit details
-
Copy full SHA for 6e9cbcf - Browse repository at this point
Copy the full SHA 6e9cbcfView commit details -
Major refactor to use WeakHashMap and MapKeyGetter instead of Finaliz…
…ableWeakReferenceToCachedProperty This allows mixins into Direction and Integer properties as well
Configuration menu - View commit details
-
Copy full SHA for 74619fb - Browse repository at this point
Copy the full SHA 74619fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba8ed39 - Browse repository at this point
Copy the full SHA ba8ed39View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b6971 - Browse repository at this point
Copy the full SHA d1b6971View commit details -
Configuration menu - View commit details
-
Copy full SHA for e55c756 - Browse repository at this point
Copy the full SHA e55c756View commit details
Commits on Feb 11, 2021
-
Use a WeakReference as the cache map value instead of using MapKeyGetter
Co-authored-by: 2No2Name <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a339aee - Browse repository at this point
Copy the full SHA a339aeeView commit details -
Make and check a defensive copy of the cached property
This prevents the GC from clearing the weak reference before we access it strongly
Configuration menu - View commit details
-
Copy full SHA for 7603673 - Browse repository at this point
Copy the full SHA 7603673View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f02c6f - Browse repository at this point
Copy the full SHA 3f02c6fView commit details
Commits on Mar 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f4a33fd - Browse repository at this point
Copy the full SHA f4a33fdView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.