--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7f96a216-9c53-4ad7-a10c-07a09c7db7b2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I'm not fully up on my windows compiling but I assume the dll needs to be linked into to the Python library that creates the pyd? That is, libyaml is a library that a python yaml package wraps.
As far as I know, yaml would be slower to parse than json, because it is a superset with much more formatting options and whitespace. Json might be faster and just as readable.
I did a comparison of serializers, although yaml is not included, and it was tested with smaller data
http://www.justinfx.com/2012/07/25/python-2-7-3-serializer-speed-comparisons/
Megajson and ultrajson came out very fast. You could update the test to include yaml libraries, and also to do a test against a 10mb data structure.
--
data = {'object1':{'a':[1,2,3,4,5], 'b':{'1':[1,2,3,4,5,6]}}}print json.dumps( data,indent=4,separators=(',',': ') )
>> { "object1": { "a": [ 1, 2, 3, 4, 5 ], "b": { "1": [ 1, 2, 3, 4, 5, 6 ] } }}
## Would love to have control over depth or better separators, so the output would be:{ "object1": { "a": [1,2,3,4,5], "b": { "1": [1,2,3,4,5,6] } }}--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/eb402d45-c4c1-476b-96a3-a19fb00d1a2a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAEc3Nf04HUY%3Dqpv5oMg%3Dv_fEqUz2f0JTzpreiXcU0orTm69gLw%40mail.gmail.com.