Open Paalon opened 2 weeks ago
@GunnarFarneback @kescobo If we use versions traits overall the scanner functions, the ultimate implementation will be
function scan_something(version::YAMLVersion, stream::TokenStream)
subprocess1(version, stream)
subprocess2(version, stream)
end
Is this good at performance compared to naive ones (the above implementation)?
Yes, there's basically no overhead related to the traits. Not that I think the overhead would have been significant with any other approach either.
My maybe undisputed PR list of waiting to be merged (does not include new features about schemata):
src/scanner.jl
src/buffer_input.jl
test/runtests.jl
YAML.jl v0.4.10 scanner is specific to YAML v1.1. Therefore we'll need the following modules to support YAML v1.2 #186: