[OpenJDK 2D-Dev] Thoughts about font implementation
Igor.Nekrestyanov at Sun.COM
Fri Sep 19 01:12:18 PDT 2008
>> - It probably does increase perceived footprint although
>> results will probably vary by platform and
>> we'd need to see if people will accept that. I did what
>> I hope is a reasonably fair comparison of the two approaches,
>> reading all font files on my XP system takes mem usage up to 160Mb
>> with the new approach, vs 37Mb with the existing approach.
> That is virtual memory or actual resident memory? Sure - virtual memory
> mapped into the process increases significantly, as all the font files
> appear to be loaded completely into the process. Actual used resident
> memory should not increase (at least, did not for my tests under linux).
> But I see that the problem is that people use flawed memory usage
> analysis tools and will probably scream if the VM uses twice as much
> memory than before.
Yep, this is virtual memory.
Unfortunately this is what people look at using windows task manager :(
>> - There are some cases that need additional work here
>> * T2K also, like any rasteriser will need to randomly access the file,
>> so has similar code.
> Unfortunately I have no control over that code.
I can add necessary support on t2k side if it will be needed.
More information about the 2d-dev