mustangostang / spyc

A simple YAML loader/dumper class for PHP
MIT License
701 stars 207 forks source link

Filesize Limit #10

Closed swt83 closed 11 years ago

swt83 commented 11 years ago

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.

mustangostang commented 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.