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

More font loading speedups #1194

Merged
merged 5 commits into from
Jan 10, 2017
Merged

More font loading speedups #1194

merged 5 commits into from
Jan 10, 2017

Conversation

karimnaaji
Copy link
Member

Reduce data reinterpretation between platform layer and alfons.
Moving from a total of 946.282ms to 425.619ms on iPhone 6s, other platforms need to be updated.

@karimnaaji karimnaaji force-pushed the reduce-font-data-copies branch 6 times, most recently from 1320448 to 7df4a33 Compare January 6, 2017 21:28
@karimnaaji karimnaaji changed the title wip: More font loading speedups More font loading speedups Jan 6, 2017
@karimnaaji karimnaaji requested a review from hjanetzek January 6, 2017 21:33
@karimnaaji karimnaaji force-pushed the reduce-font-data-copies branch from 7df4a33 to acc2579 Compare January 6, 2017 22:47
Copy link
Member

@hjanetzek hjanetzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hjanetzek
Copy link
Member

hjanetzek commented Jan 9, 2017

@karimnaaji I think we could add a move constructor to alfons::InputSource with this PR - just in case the compiler does not optimize the copy out. I'm adding it tomorrow and merge then.

@karimnaaji
Copy link
Member Author

Yeah we checked with @tallytalwar comparing data address to see if the RVO was actually propagating from the platform layer to alfons, but it would be worth to force the compiler to do that.

@hjanetzek hjanetzek force-pushed the reduce-font-data-copies branch from acc2579 to 269b567 Compare January 10, 2017 12:30
@hjanetzek hjanetzek merged commit d93cf4f into master Jan 10, 2017
@hjanetzek hjanetzek deleted the reduce-font-data-copies branch January 10, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants