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

Speed up encoding. #285

Merged
merged 8 commits into from
Sep 1, 2015
Merged

Speed up encoding. #285

merged 8 commits into from
Sep 1, 2015

Conversation

jondeandres
Copy link
Contributor

Seems our Encoding and Encode classes were quite slow, I think I've speed-up it a bit. These are my benchmark results:

Iterations: 10

master branch

                           user     system      total        real
ascii_chars            5.610000   0.010000   5.620000 (  5.633157)
iso_8859_1             5.630000   0.000000   5.630000 (  5.633440)
utf8                   5.350000   0.010000   5.360000 (  5.361992)
russian_iso_8859_1     5.930000   0.000000   5.930000 (  5.941858)

speed-up-encoding branch

                           user     system      total        real
ascii_chars            0.600000   0.000000   0.600000 (  0.594938)
iso_8859_1             0.600000   0.000000   0.600000 (  0.607980)
utf8                   0.400000   0.010000   0.410000 (  0.408550)
russian_iso_8859_1     0.650000   0.000000   0.650000 (  0.642910)

jondeandres added a commit that referenced this pull request Sep 1, 2015
@jondeandres jondeandres merged commit 7b26af2 into master Sep 1, 2015
@jondeandres jondeandres deleted the speed-up-encoding branch September 1, 2015 10:03
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.

1 participant