I was thinking about using something like DBM::Deep to avoid DB I/O, [sic] have you used it / [sic] do you know if it's any good?
Yes, I’ve used it. I wanted to see whether I could use it to replace the innards of something that was using MLDBM in conjunction with DB_File (or maybe it was BerkeleyDB?) and Storable underneath. I wanted to do this for the improved UI experience, since even with MLDBM you have to manage some of the multilevel stuff on your own, nontransparently.

It was all a terrible mistake: DBM::Deep ran so very very slowly, and was so huge, as to immediately disqualify itself from the running. (Plus it installed about 50 new modules, and not without problems either, on my system through CPAN recursion. Simply incredible the bloat people take for granted these days!) I don’t have the numbers on me right now, but it was a good bit more than even a full order of magnitude slower than doing it the other way. The performance just didn’t cut the mustard.

I was ready for a drop in performance, but I could not handle rather more than 1000% slower. And bigger. That just won’t work. If you don’t mind 10, 20, maybe 30 times slower, well, go for it. But don’t say I didn’t tell you so. Better to spend the time investigating the improved facilities of latterday BerkeleyDB releases instead.


In reply to Re^5: How fast is fast? by tchrist
in thread How fast is fast? by Logicus

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.