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

Very slow on iPhone device with 10K number of lines #11

Open
jinnajmal opened this issue Jun 27, 2013 · 7 comments
Open

Very slow on iPhone device with 10K number of lines #11

jinnajmal opened this issue Jun 27, 2013 · 7 comments
Labels

Comments

@jinnajmal
Copy link

Awesome library in fact

i am using this control to render some articles and some of them are thousands of lines, its taking almost 30 seconds to prepare and render a SSTextView with 10 thousands lines with font size of 20

Please tell me how can i resolve this issue

thanks

@mta452
Copy link
Owner

mta452 commented Jun 28, 2013

If you are going to render this much lines, it will definitely take time as multiple font tables are to be applied on the text. Moreover arm architecture is much slower than x86_x64, therefore more time is consumed in processing on device.

@jinnajmal
Copy link
Author

thanks Tayyab for quick reply, Would you suggest any solution for this problem in current implementation. i have compared the results with UITextView, and UITextView is surprisingly fast.

@sliaquat
Copy link

SheenFigure is a remarkable effort by Tayyab. However, if your aim is just to display text in popular Urdu fonts, you can use core text on iOS and OS X.

-- Sent from my mobile device.

On Jun 28, 2013, at 3:33 PM, Muhammad Ajmal [email protected] wrote:

thanks Tayyab for quick reply, Would you suggest any solution for this problem in current implementation. i have compared the results with UITextView, and UITextView is surprisingly fast.


Reply to this email directly or view it on GitHub.

@mta452
Copy link
Owner

mta452 commented Jun 28, 2013

Actually UITextView does not do shaping, that's why it is faster. As of know the only way for you is to either reduce the text or divide it into several portions and let the users read those portions like pages.

However, if you provide me the sample file I can analyze the most slow process and think of ways to make it work faster.

@jinnajmal
Copy link
Author

i have a Label control which also uses core text framework, i wish if you Text View also do the same :)

https://dl.dropboxusercontent.com/u/6137862/PPLabel.h
https://dl.dropboxusercontent.com/u/6137862/PPLabel.m

but this doesn't work with these custom fonts.

@jinnajmal
Copy link
Author

you can see the complete project here
https://github.com/petrpavlik/PPLabel

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

No branches or pull requests

3 participants