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
{{ message }}
This repository has been archived by the owner on May 1, 2020. It is now read-only.
Use of enhanced for loop syntax (e.g. for (SpringListener listener : mListeners) {) causes the creation of unwanted garbage every frame, in example here is a capture of Inertia Ball demo
Would you consider not using it particularly in methods which are called often like advance?
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.
Hi @willbailey - I'm interested in submitting a PR for this change!
How would you feel about substituting CopyOnWriteArrayLists with contains() checks on addition, for the CopyOnWriteArraySets? My initial experiments seem positive.
Upon further thought, all of these Iterators are what are providing the thread-safe iteration guarantees. Any solution that removes those CowIterator allocations will be removing those guarantees (without other arrangements being made).
That leaves me curious - what solution were you imagining?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Use of enhanced for loop syntax (e.g.
for (SpringListener listener : mListeners) {
) causes the creation of unwanted garbage every frame, in example here is a capture of Inertia Ball demoWould you consider not using it particularly in methods which are called often like
advance
?The text was updated successfully, but these errors were encountered: