bugThe FreeType Project - Bugs: bug #54257, Unexceptably slow FT_New_Face for...

 
 

bug #54257: Unexceptably slow FT_New_Face for PCF font

Submitted by:  Alexei Podtelezhnikov <podtelez>
Submitted on:  Fri 06 Jul 2018 02:41:35 PM UTC  
 
Severity:  3 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  Alexei Podtelezhnikov <podtelez> Open/Closed:  Open
Planned Release:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 21 Sep 2018 09:23:40 PM UTC, comment #3:

Thanks for working on it. Both PCF and BDF drivers are contributed code...

Werner LEMBERG <wl>
Project Administrator
Fri 21 Sep 2018 03:10:21 PM UTC, comment #2:

Working with the gzipped file is too slow. It does not appear to be cached well too -- try waterfall plots in ftstring or ftview.

$ bin/ftbench ../unifont-11.0.01.pcf.gz

Alexei Podtelezhnikov <podtelez>
Project MemberIn charge of this item.
Fri 21 Sep 2018 03:02:52 PM UTC, comment #1:

$ bin/ftbench ../unifont-11.0.01.pcf

Before this commit

After this commit

Alexei Podtelezhnikov <podtelez>
Project MemberIn charge of this item.
Fri 06 Jul 2018 02:41:35 PM UTC, original submission:

Yes, this is a large font, but FT_New_Face is just awfully slow.

$ bin/ftbench ../unifont-11.0.01.pcf
...
executing tests:
Load 0.314 us/op 6393744 done
Load_Advances (Normal) 0.322 us/op 6222483 done
Load_Advances (Fast) 0.325 us/op 6165396 done
Load_Advances (Unscaled) 0.327 us/op 6108309 done
Render 0.376 us/op 1883871 done
Get_Glyph 0.575 us/op 1598436 done
Get_CBox 0.444 us/op 1370088 done
Get_Char_Index 0.196 us/op 10218394 done
Iterate CMap 11537.837 us/op 174 done
New_Face 19428.530 us/op 103 done
Embolden 1.565 us/op 913392 done
Get_BBox 0.423 us/op 1598436 done
Create face & load glyph(s) 0.715 us/op 2797263 done

Alexei Podtelezhnikov <podtelez>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by podtelez (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-21 wl Assigned toNone => podtelez

    Back to the top


    Powered by Savane 3.4