Issue 5270 in pharo: Improve FreeType Caching

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5270 in pharo: Improve FreeType Caching

pharo
Status: Accepted
Owner: ----
Labels: Milestone-1.4 Type-Feature

New issue 5270 by [hidden email]: Improve FreeType Caching
http://code.google.com/p/pharo/issues/detail?id=5270

the current implementation for widthOfString: could be improved in multiple  
ways:

- update the algorithm by moving out all the edge-case detection from the  
inner loop
- Use a very fast cache for the ascii-range character
- Use an identityDictionary for the caching of the other characters


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5270 in pharo: Improve FreeType Caching

pharo

Comment #1 on issue 5270 by [hidden email]: Improve FreeType Caching
http://code.google.com/p/pharo/issues/detail?id=5270

I improved the general handling for characters in the ascii range by a  
factor 4.

now the question is, whether we want to pay the cost for having this:

        fastCache := Array new: 256 * 256.
        nilCache := Array new: 256.
        subpixelCache := Array new: 256 * 64.

= roughly 4MB of pointers with half of the objects being arrays = let's  
estimate it as being around 15 MB


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5270 in pharo: Improve FreeType Caching

pharo
Updates:
        Labels: -Milestone-1.4

Comment #2 on issue 5270 by [hidden email]: Improve FreeType Caching
http://code.google.com/p/pharo/issues/detail?id=5270

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker