From: Ralph Shnelvar Date: 2010-08-22T01:45:24+09:00 Subject: YAML::dump slow ------------6E1DA17CE188D41 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit This is interesting and counterintuitive ... I am creating a YAML file with about 200,000 entries. The YAML file "reflects" the data structure of a directory tree of a disk. All I have is directory names and subdirectories and filenames in the (sub) directories. I have 100,000 simulated directories and 100,000 simulated files. It takes about 10 seconds to create this data structure in memory 10 _minutes_ to create the YAML string (i.e. YAML::dump) 1 second to write out the YAML string (25 megabytes) 4 seconds to read the YAML string (why so long?) 8 seconds to do the YAML::load Anyone have any ideas how to speed up the creation of the YAML file or why there is such an asymmetric amount of time for YAML::dump and YAML::load? ------------6E1DA17CE188D41--