freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Accelerate TrueType interpreter with JIT compiling?


From: Behdad Esfahbod
Subject: Re: [ft-devel] Accelerate TrueType interpreter with JIT compiling?
Date: Sun, 10 Aug 2014 15:54:35 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 14-08-09 04:08 AM, Zoltán Herczeg wrote:
> Hi,
> 
> I am Zoltan Herczeg, the developer of the sljit JIT compiler. I am new to 
> FreeType, but if I understand correctly TrueType hinting is done by a 
> byte-code interpreter (ttinterp). My question is, is it worth to accelerate 
> this process by JIT?

I highly doubt.


 I mostly saw simple uint32 computations in the code, which can be translated
to sljit instructions (LIR) easily. However, JIT compiling has a considerable
overhead, so it is only worth for frequently used code paths (for example
sljit is used for accelerating regular expressions and network packet
filtering). May I ask the purpose of this interpreter? Is it only used for
font loading, or has other purposes? Is the same program runs for all glyphs
for the same font (or multiple fonts)? What is the typical program length
(number of bytecode instructions)? Do you have any measurements about the
ratio of interpreted runtime compared to the total time consumed by freetype?
> 
> Regards,
> Zoltan
> 
> 
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel
> 

-- 
behdad
http://behdad.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]