-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue #16
Comments
fwiw, I tried running a profiler on that test case and that suggested that it spends most of its runtime inside Serializer.postProcessArrays(). This is DMD 2.059 on Windows, using the Sleepy profiler. |
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. |
I get ~7 seconds on this pc, and the profiler says:
|
Thanks, I'll do some investigation. BTW, are those 7 seconds with Tango? |
Thats DMD2.059 on a 3.4ghz Intel Q6600, built with -O -inline -release. (i havent tested with noboundscheck, as i was building with xfbuild and that makes it fall over DMD bug 7478). The same test takes ~14 seconds on the 3ghz Athlon64 X2 i have at work. |
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.
The text was updated successfully, but these errors were encountered: