docopt / docopt.c

C-code generator for docopt language.
MIT License
318 stars 46 forks source link

Feature/change string replace #7

Closed ffunenga closed 11 years ago

ffunenga commented 11 years ago

results_new results_old

Just to make sure, I've tested out the times between the two methods in my PC and string.Template turned out to be ((232-187)/232 =) 19% faster than __str__.replace

kblomqvist commented 11 years ago

Yep, I think that the performance is not what we are after with this change but flexibility and readability?