SheenFigureLegacy icon indicating copy to clipboard operation
SheenFigureLegacy copied to clipboard

Very slow on iPhone device with 10K number of lines

Open jinnajmal opened this issue 11 years ago • 7 comments

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

jinnajmal avatar Jun 27 '13 13:06 jinnajmal

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.

mta452 avatar Jun 28 '13 09:06 mta452

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.

jinnajmal avatar Jun 28 '13 10:06 jinnajmal

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.

sliaquat avatar Jun 28 '13 11:06 sliaquat

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.

mta452 avatar Jun 28 '13 12:06 mta452

thanks Tayyab

https://dl.dropboxusercontent.com/u/6137862/ur.maududi https://dl.dropboxusercontent.com/u/6137862/Jameel%20Noori%20Nastaleeq%20Kasheeda.ttf

jinnajmal avatar Jul 01 '13 08:07 jinnajmal

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 avatar Jul 01 '13 08:07 jinnajmal

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

jinnajmal avatar Jul 01 '13 08:07 jinnajmal