[AstroPy] pyregion : python parser for ds9 region files
Michael Droettboom
mdroe at stsci.edu
Tue Oct 20 11:31:45 EDT 2009
Jae-Joon Lee wrote:
> The parser seems to be rather slow (likely due to my lack of parser
> design skill), but I currently don't have any further plan to improve
> its performance. So, any contribution will be welcomed.
>
The pyparsing-based TeX parser in matplotlib's mathtext is also rather
suboptimal. But I found adding
from pyparsing import *
ParserElement.enablePackrat()
made a considerable difference. I believe this caches sub-results as it
goes. Have you played with that?
Mike
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
More information about the AstroPy
mailing list