in reply to std dev calculations slow over time
I don't know if this is your main problem, but performance for SQLite is poor when doing multiple inserts (see the performance notes in DBD::SQLite). Wrap all of those inserts in a transaction and commit them all at once. I see you have some commit calls in there, but I didn't see where you set up a transaction.
Also, if you think the database might be the culprit, you can profile it with DBI::Profile. I give some examples of that in my Profiling chapter in Mastering Perl. You might also try some of the other profiling techniques to identify other slow parts.
Good luck :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: std dev calculations slow over time
by punkish (Priest) on Oct 22, 2006 at 19:02 UTC | |
by AK108 (Friar) on Oct 22, 2006 at 21:25 UTC | |
by randyk (Parson) on Oct 22, 2006 at 23:09 UTC |