Thank you! Here is a output of Devel::NYTProf:
Profile of testdb.pl for 6.46s (of 6.47s), executing 1879 statements a +nd 610 subroutine calls in 21 source files and 3 string evals. Top 15 Subroutines Calls P F Exclusive Time Inclusive Time Subroutine 2 2 2 6.39s 6.39s DBI::st::execute (xsub) 2 1 1 19.1ms 19.1ms DynaLoader::CORE:ftsize (op +code) 1 1 1 16.0ms 53.1ms main::BEGIN@1 6 1 1 8.95ms 8.95ms DBI::st::fetchrow_array +(xsub) 1 1 1 4.61ms 9.37ms DBI::install_driver 1 1 1 2.79ms 7.47ms DBI::BEGIN@157 1 1 1 2.61ms 2.82ms Config::AUTOLOAD 1 1 1 2.32ms 2.39ms Exporter::Heavy::BEGIN@186 1 1 1 1.86ms 4.34ms Exporter::as_heavy 1 1 1 1.33ms 1.33ms DBI::BEGIN@156 1 1 1 1.05ms 1.65ms DBD::SQLite::BEGIN@30 1 1 1 801µs 25.2ms DBI::BEGIN@160 1 1 1 726µs 1.40ms DynaLoader::BEGIN@24 3 3 3 617µs 682µs warnings::register::import 104 2 1 596µs 596µs DBI::_install_method + (xsub)
and
# spent 6.39s within DBI::st::execute which was called 2 times, avg 3. +19s/call: # once (6.39s+0s) by main::RUNTIME at line 8 # once (18µs+0s) by DBD::SQLite::db::do at line 206 of DBD/SQLite.p +m sub DBI::st::execute; # xsub
Only "DBI::st::execute" is slow, the rest is o.k. You can download the whole report on http://dl.dropbox.com/u/61444/temp/nytprof.zip

In reply to Re^2: Very slow SQLite driver by raschu
in thread Very slow SQLite driver by raschu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.