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

Is there any performance concerns if I use this library? #260

Closed
TonyTangAndroid opened this issue Mar 10, 2016 · 1 comment
Closed

Is there any performance concerns if I use this library? #260

TonyTangAndroid opened this issue Mar 10, 2016 · 1 comment

Comments

@TonyTangAndroid
Copy link

This library looks awesome and is very easy to use. But I am just wondering how much the performance will be sacrificed if I choose this library to support customized fonts? Could you please elaborate a little bit more about the implementation?

@chrisjenx
Copy link
Owner

@TonyTangAndroid well you can look for yourself all the code is there.

There is minor memory increase as we are finding attributes at run time and if you have a lot of views then there might be slightly increases GC. (That has been alleviated a little in the snapshot).

Apart from that the largest "performance" hit you are going to see is the use of additional Typefaces.

Actual execution speed will be negligible, the majority of time is spent inflating and instantiating views which is done by the system anyway.

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

2 participants