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

Remove useless int casting #735

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Remove useless int casting #735

merged 1 commit into from
Aug 17, 2023

Conversation

eumiro
Copy link
Contributor

@eumiro eumiro commented Aug 17, 2023

This is just a tiny refactoring. In Python 3, math.floor and math.ceil return int, so it is not necessary to cast it explicitly like in Python 2.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 17, 2023

CodSpeed Performance Report

Merging #735 will improve performances by 14.53%

Comparing eumiro:int (f4cf767) with master (186252a)

Summary

🔥 1 improvements
✅ 1 untouched benchmarks

Benchmarks breakdown

Benchmark master eumiro:int Change
🔥 test_format 2.6 ms 2.3 ms +14.53%

@Secrus Secrus merged commit 8af563b into sdispater:master Aug 17, 2023
18 checks passed
@eumiro eumiro deleted the int branch August 17, 2023 18:37
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