On Jul 7, 2009, at 12:28 AM, Dmitry.Skiba wrote: > And mobiles do not have slow HDD, so maybe reading it from file with > proper caching can be fast enough.
Mobiles have slow flash storage instead. Same effect (though the seek time is effectively zero.) In general, memory-mapping a file is a good way to go. Trying to get clever with caching file reads often just duplicates or gets in the way of the caching the kernel does automatically. (OS X, for instance, will pre-read in the background if it senses that you're reading the file sequentially.) In-heap caches can be counterproductive sometimes because they represent extra address space that has to be paged out when memory is tight. —Jens --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
