Subject: | PPI is incredibly slow with very large files |
During an early Tinderbox 5000 run, we went into what was effectively an infinite loop for the file
authors/id/A/AR/AREIBENS/PDF-API2-0.3r77.tar.gz/PDF-API2-0.3r77/lib/PDF/API2/CoreFont/arial.pm
This is an insane 2.7meg 38,000 line file, and PPI sits there parsing it practically indefinitely.
This is probably due to some badly scaling algorithms somewhere in the parsing code, probably O(n^2) or worse. But I'm not exactly where.
For now I've locked anything bigger than 500k out of the tinderbox, but we need to chase down where the problem algorithm is.