Optimize python parsers.

Review Request #2947 - Created Oct. 8, 2015 and submitted

Information
John Sirois
pants
jsirois/engine/parsers/reduce_per_parse_state
2308, 2312, 2346
2945, 2944
2952, 2950
a747970...
Reviewers
pants-reviews
benjyw, ity, kwlzn, patricklaw, stuhood
This restructures the two python parsers to return a parser that re-uses
as much symbol table setup as possible across individual file parses.

 src/python/pants/engine/exp/mapper.py              | 42 ++++++++++++-----------
 src/python/pants/engine/exp/parsers.py             | 91 +++++++++++++++++++++++++++++++++-----------------
 tests/python/pants_test/engine/exp/test_graph.py   | 14 +++-----
 tests/python/pants_test/engine/exp/test_mapper.py  |  6 ++--
 tests/python/pants_test/engine/exp/test_parsers.py | 40 ++++++++++++++--------
 5 files changed, 117 insertions(+), 76 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/84434346
Nick Howard (Twitter)
John Sirois
Benjy Weinberger
Nick Howard (Twitter)
John Sirois
John Sirois
John Sirois
John Sirois
Nick Howard (Twitter)
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...