Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: when to c, when to perl

by TGI (Parson)
on Jul 26, 2008 at 01:19 UTC ( [id://700259]=note: print w/replies, xml ) Need Help??


in reply to Re^4: when to c, when to perl
in thread when to c, when to perl

tilly is correct. For a case where the main issue is simply small RAM, adding another library will just use more memory and exacerbate the problem.

Your situation is different. BerkeleyDB is certainly up to the task. I used the term dbfile as a generic term for databases like Berkeley and GDBM. I'm sorry if this sloppy usage was confusing.

I don't work much with large scale data processing tasks like this, but it looks like you are on the right track with your plans.

Using the berkeleyDB is a way to offload memory intensive and speed critical operations to a C library through XS. Exactly what has been widely advocated in this thread. The best thing is that someone else has already written and carefully optimized this code. What could be better than that?


TGI says moo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found