CityGenerator / Megacosm-Generator

A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.
GNU General Public License v2.0
70 stars 31 forks source link

use re.compile in megacosm.py #61

Closed morgajel closed 10 years ago

morgajel commented 10 years ago

10:57 < DasIch> morgajel: also use re.compile so that regular expressions don't need to be parsed and compiled everytime you perform a match

morgajel commented 10 years ago

There look to be only three places where this will really be helpful- npc and bond will eventually be replaced, so it's not work working around that ugliness. complete, but changes need to be merged.