Re: [ft] Minimizing small file reads
Subject: Re: [ft] Minimizing small file reads
Newsgroups: gmane.comp.fonts.freetype.user
Date: 2008-11-18 09:57:39 GMT
What about loading the font completely into memory and having FT2 work on the loaded buffer? suzuki toshiya wrote: > Hi, > > In the system supporting memmap() and FreeType2 is configured > to use it, the number of system call would be much reduced in > comparison with the system without memmap. In the target platform > which you're working for, memmap() is available? Or, available > and configured to use it, but you think still too many read > system call is executed? > > Regards, > mpsuzuki > > ☂Josh Chia (谢任中) wrote (2008/11/18 10:39): >> Hi, >> >> I notice that freetype makes a lot of small reads, resulting in a lot of >> SYS_read calls. I'm using freetype in an app that runs in a ptrace >> sandbox, >> so performance is sensitive to system calls. Is there a simple way to >> prevent the numerous small reads (via ft_ansi_stream_io), such as >> configuring freetype to prefetch into a large buffer when reading, and >> making it assume that font files never change? Will I need to make some >> configuration changes or do I need to make code changes? Thanks! >> >> Josh >>(Continue reading)
RSS Feed