On 2012-04-18 05:32, Andrej Mitrovic wrote:
On 4/18/12, Andrej Mitrovic<[email protected]> wrote:
On 4/17/12, Jacob Carlborg<[email protected]> wrote:
Feel free to use my serialization library and see what it can handle:
https://github.com/jacob-carlborg/orange
Simple test-case:
http://pastebin.com/dcnm4nmA
That's around 15k keys. It takes 31 seconds to serialize. And my
structures are full of these hashes, so it would likely take an
eternity to serialize my structures with Orange.
Here's msgpack-d:
http://pastebin.com/wsRQPiDJ
6.3 milliseconds to serialize. But it takes 32 milliseconds to
unserialize, which is 5x slower. On big data structures this
difference becomes quite noticeable.
I'm getting around 23 seconds with DMD 2.059 and around 9.5 seconds
using DMD 1.072 with Tango. I'm compiling on Mac OS X 32bit.
So using Tango is a around 2.5x faster than using Phobos. But it's not
in the same league as msgpack. It's not even in the same sport :)
I'll see if I can to something about it.
--
/Jacob Carlborg