On 7 Feb 2012, at 10:20pm, Yves Goergen wrote:

> I have written an application that reads values from an SQLite database
> and uses them for generating graph images. This process takes up to a
> few seconds (most of it is reading the database) and multiple images
> shall be generated. So I thought that doing things in parallel might be
> a good idea.

If most of the time really is spent reading from the file, then it may not be 
worth parallelising your code.  All your data is on the same disk and you can 
read only one sector of the disk at a time.

If you can read all your data first in one process, but then parallelise the 
graph-drawing elements, then that might take good advantage of multi-cores and 
multi-processors.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to