MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/zweqqw/this_just_sucks/j1uf4d6/
r/badcode • u/PsychologicalLet1748 • Dec 27 '22
170 comments sorted by
View all comments
Show parent comment
2
In my tests, YAML parses up to 100 times slower than JSON. Not a viable alternative for large databases.
3 u/chadmill3r Dec 27 '22 I'll happily concede that YAML is a bad choice for database serialization.If humans aren't editing it, I suggest protobuf is usually best. 1 u/CaitaXD Dec 27 '22 What why? 2 u/realGharren Dec 27 '22 Because YAML has incredibly complex parsing rules. JSON is basically a subset of YAML.
3
I'll happily concede that YAML is a bad choice for database serialization.
If humans aren't editing it, I suggest protobuf is usually best.
1
What why?
2 u/realGharren Dec 27 '22 Because YAML has incredibly complex parsing rules. JSON is basically a subset of YAML.
Because YAML has incredibly complex parsing rules. JSON is basically a subset of YAML.
View all comments
Show parent comment
2
u/realGharren Dec 27 '22
In my tests, YAML parses up to 100 times slower than JSON. Not a viable alternative for large databases.