Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Sqlite: Threads and inserts into a different database for each one. (1 thread fast, >1 slow)

by RichardK (Priest)
on Apr 07, 2014 at 11:21 UTC ( #1081390=note: print w/ replies, xml ) Need Help??


in reply to Sqlite: Threads and inserts into a different database for each one. (1 thread fast, >1 slow)

You didn't say what OS you are running on, and as perl's thread implementations vary that may be important.

perlthrtut has this to say which may be relevant to your problem :-

Performance considerations The main thing to bear in mind when comparing Perl's ithreads to o +ther threading models is the fact that for each new thread created, a c +omplete copy of all the variables and data of the parent thread has to be +taken. Thus, thread creation can be quite expensive, both in terms of mem +ory usage and time spent in creation.


Comment on Re: Sqlite: Threads and inserts into a different database for each one. (1 thread fast, >1 slow)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2014-10-30 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (211 votes), past polls