L2Program/FlintPlusPlus — pull request #15 by kanielc (2014-05-12 16:04:59+00:00)
Title: Using string iterator instead of creating new strings

So instead of chomping the string we're processing, instead use an iterator into the data (since it's always a substring of input).

This avoids a bunch of string re-allocations.
The best part is that the performance is now much better.

Run time from the original test run (a few commits ago): Flint++ - 0m0.987s
Present run time after the iterator and file changes: real 0m0.281s
It's actually faster now than Facebook's C++ version :)

By the way, this is the profile of the project tested on:
Lint Summary: 642 files
Errors: 91 Warnings: 397 Advice: 268