I was tidying up a script for a client that was previously working fine and noticed it was really, really slow. Processing a 600k file was taking about 30 seconds. This seemed big odd as the module that was doing the grunt work was something I've used for several projects and handles 15meg files without complaint. I thought the best thing to do would be top copy it over to my linux box and attack it with Devel::DProf and see what's up.
The script was using Config::Ini which no longer seems to be on CPAN which is a bit confusing. I commented out the code that used that and hardcoded the values I wanted. The script ran in about 2 seconds.
I guess I'd better look at finding a new module to handle INI files :)
Re:Randal did a column on INI file parsing..
gav on 2002-08-05T17:09:14
I just watched South Park Episode 607: The Simpsons Already Did It.I think there should be one called 'Randal Already Did It'
:)