Instead of #27 (or until a solution is figured out), another solution could be to introduce a new dedicated format that could be streamed. Say syaml (Simple YAML). Alternatively, this could be made the default and require a dedicated type if your YAML uses anchors/aliases depending on which is more common. This would allow YAML to be streamed when possible, saving on quite a bit of memory when processing large files/input.
Instead of #27 (or until a solution is figured out), another solution could be to introduce a new dedicated format that could be streamed. Say
syaml (Simple YAML)
. Alternatively, this could be made the default and require a dedicated type if your YAML uses anchors/aliases depending on which is more common. This would allow YAML to be streamed when possible, saving on quite a bit of memory when processing large files/input.This would also be pretty easy to implement as the code existed previously, ref https://github.com/Blacksmoke16/oq/pull/18/files#diff-6158ec3689d157ae13cf40562e63c4c70449f425ade22682a1183b93c1ee3a84R10-R55.