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

[Performance] Convert ASLayoutElementSize to atomic. #trivial #318

Closed
appleguy opened this issue May 29, 2017 · 0 comments
Closed

[Performance] Convert ASLayoutElementSize to atomic. #trivial #318

appleguy opened this issue May 29, 2017 · 0 comments

Comments

@appleguy
Copy link
Member

ASLayoutElementStyle is one of the most frequently accessed objects in the framework. Sometimes it's also used on the main thread, further increasing the value of performance optimizations.

We saw very significant wins once other properties on this object were converted to atomics. A profile I just took suggests that there's meaningful opportunity in converting ASLayoutElementSize as well, of about 2% total CPU.

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

No branches or pull requests

1 participant