Skip to content

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 python-pendulum:master Aug 17, 2023
@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