Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/change string replace #7

Merged
merged 2 commits into from
May 30, 2013
Merged

Feature/change string replace #7

merged 2 commits into from
May 30, 2013

Conversation

ffunenga
Copy link

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
Copy link
Member

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

kblomqvist added a commit that referenced this pull request May 30, 2013
@kblomqvist kblomqvist merged commit 7ed6215 into docopt:master May 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants