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

Improve 17.2x performance for UUID == operate #144

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

magicbear
Copy link
Contributor

Test app:
def perf():
uuid1 = toUUID(uuid.uuid4())
uuid2 = toUUID(uuid.uuid4())
t1 = time.time()
for i in range(10000000):
s=uuid1==uuid2
print(1000*(time.time()-t1))

Original by str spend: 5834.417343139648
Patched : 337.04090118408203

@cheahjs cheahjs merged commit 549f60f into cheahjs:main Feb 10, 2024
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