in reply to Re^3: Compile perl for performance
in thread Compile perl for performance
Thanks for your informative follow up. I picked up on the large transaction count optimization jointly from reading up on LMDB as well as using it previously with BerkeleyDB. I borrowed KENTNL's single_txn trick that he used in CHI::Driver::LMDB module. This is what took a lot of the time off of the original 32 hours. Most of the remainder improvement was due to setting LMDB ReadMode true and setting the environment flags to MDB_WRITEMAP | MDB_NOMETASYNC | MDB_MAPASYNC | MDB_NORDAHEAD
I am currently committing after 100 000 inserts. I did some testing up to 1,000,000 and found insignificant improvements after 100,000. So I decided to keep 100,000 as my limit
Thanks again for your sage advice!
lbe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Compile perl for performance
by Marshall (Canon) on Aug 19, 2018 at 18:39 UTC |