[AstroPy] pyregion : python parser for ds9 region files

Michael Droettboom mdroe@stsci....
Tue Oct 20 10:31:45 CDT 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 *

made a considerable difference.  I believe this caches sub-results as it 
goes.  Have you played with that?


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