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

Benchmark methods that calculate boundaries. #67

Closed
Kentzo opened this issue Mar 2, 2017 · 1 comment
Closed

Benchmark methods that calculate boundaries. #67

Kentzo opened this issue Mar 2, 2017 · 1 comment

Comments

@Kentzo
Copy link
Owner

Kentzo commented Mar 2, 2017

There are a bunch of places where rects are needlessly re-calculated over most likely constant data.

E.g. intrinsicContentSize can just cache results of the rectForLabel call.

One of the approaches would be to have cache inside methods that calculate boundaries.
But first each method needs to be benchmarked, as maintaining cache is a burden.

@Kentzo
Copy link
Owner Author

Kentzo commented Mar 2, 2017

@JanX2 Do you think you'd like to take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant