[maemo-developers] ANN: LightMediaScanner 0.1

From: Gustavo Sverzut Barbieri barbieri at gmail.com
Date: Thu Dec 13 18:57:42 EET 2007
On Dec 13, 2007 1:50 PM, Allan Bezerra <allan.bezerra at gmail.com> wrote:
> Hi Barbieri,
>
> Do you have performance tests about lms?
> I not found something related on this page.

No numbers or comparisons yet, we were finishing the Canola release
until yesterday, so no time for that, but I'd appreciate if someone
does that :-)

While coding, I tried to be light on resources, avoid memory
allocation, avoid walking strings all the time, etc...  The only point
of slowness is the dual-process approach, since you have lots of
context switches, but it's the price of it not breaking your main
process with bogus libraries.

Also, some plugins could be profiled and improved. For example, the
JPEG/EXIF plugin was written from scratch to make it lighter, but I'm
now doing lots of lseek() and read(), maybe profiling can show that
it's cheaper to mmap() the file and set a good posix_fadvise(), but
since we're working with flash memory and not disk, then it should not
import that much... and the kernel does some caching for us.

-- 
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: barbieri at gmail.com
   MSN: barbieri at gmail.com
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010

More information about the maemo-developers mailing list