Are you talking about this? If so, I would try MRTG::Parse to see if it's faster. I would also look at reducing the horrors of "readcfg", which contains a lot of extraneous junk (not to mention foreach loops iterating over hash keys...). Favorite lines: