Closed swt83 closed 11 years ago
I would say that Spyc is not very well suited to parse YAML files that are this big (my personal record was parsing a file about 300 Kb in size). You really should not do this in a real time web application (in a CLI script, maybe...). There's also a possibility that Spyc is hitting the PHP timeout or memory limit.
In trying to parse a YAML file that is 6 megs, the script hangs indefinitely. I was able to identify a pattern in the file and break it into several smaller parts, parse each of those individually, and reconnect them for a clean array conversion.