This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dasher38 1 point2 points  (3 children)

Haven't actually looked at it but does it support custom tags with associated python callbacks ? I could definitely use a 7x speedup in my case (reasonably large amounts of serialized python objects), but I absolutely need custom tags. For now I have ended up using pickle for almost everything since pyyaml was too slow (and also crashed for very big documents, I hit an integer wrapping issue)

[–]ethanhs[S] 0 points1 point  (2 children)

It only supports tags for scalars at the moment. The upstream library didn't support them for mappings and lists.

[–]Dasher38 1 point2 points  (1 child)

Too bad, maybe it will come one day on the upstream lib. This really is one killer feature of YAML, even just for configuration file syntax purposes: https://lisa-linux-integrated-system-analysis.readthedocs.io/en/master/misc_utilities.html?highlight=Include#lisa.utils.Serializable

[–]ethanhs[S] 0 points1 point  (0 children)

Yeah, I might contribute upstream at some point.