If you use ImageMagick or other other C-based processing tools, perl will certainly not be a bottleneck. The bottlenecks that I could see (especially when processing thousands of files) would be as follows:
- Disk I / O speed
- Memory access speed
- Library algorithm speed
Perl will make a great glue for doing what you want. Slow parts will be slow. You might as well make the quick parts easy. :)
Also remember the two optimization rules:
- Do not do that.
- (For experts only :) Don't do this yet.
When you connect it, run the profiler. If and when it becomes your goal, check:
http://metacpan.org/pod/Devel::NYTProf
Devel :: NYTProf is pretty much the bee's knees when it comes to profiling tools. He will show you exactly where the slowdown occurs, so you do not just have a โwarm fuzzyโ feeling that everything is fine with you ... you will understand this for sure.
source share