Skip to content

Use a simplifed byte2int #91

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

Closed
wants to merge 2 commits into from
Closed

Use a simplifed byte2int #91

wants to merge 2 commits into from

Conversation

julien-duponchelle
Copy link
Owner

It's offer a very small performance gain

The original implementation from PyMySQL test instance type
before.
https://github.com/PyMySQL/PyMySQL/blob/3be54819ee6b09710be892a2b86f4592eaabf412/pymysql/util.py

It's not require and by dropping it's a little faster.

The original implementation from PyMySQL test instance type
before.
https://github.com/PyMySQL/PyMySQL/blob/3be54819ee6b09710be892a2b86f4592eaabf412/pymysql/util.py

It's not require and by dropping it's a little faster.
@julien-duponchelle julien-duponchelle changed the title It's offer a very small performance gain Use a simplifed byte2int Sep 27, 2014
@bjoernhaeuser
Copy link
Collaborator

hm, this breaks the tests. Otherwise it's okay for me :)

@julien-duponchelle
Copy link
Owner Author

Hmm with Python 3 and Python 2 we don't have the same result .. I'm not sure to understand why.

@julien-duponchelle
Copy link
Owner Author

Not really sure about this fix.

@bjoernhaeuser
Copy link
Collaborator

Hm, I dont like it.

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