Skip to content

Replace double tilde with Math.floor#30691

Merged
XhmikosR merged 3 commits intomasterfrom
master-xmr-math-floor
May 14, 2020
Merged

Replace double tilde with Math.floor#30691
XhmikosR merged 3 commits intomasterfrom
master-xmr-math-floor

Conversation

@XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Apr 29, 2020

Nowadays, browser engines have improved a lot and Math.floor is the same, if not faster.
Also, clarity is better than micro-optimizations in this case.

Nowadays browser engines have improved a lot and `Math.floor` is the same if not faster.
Also, clarity is better than micro-optimizations in this case.
@XhmikosR XhmikosR force-pushed the master-xmr-math-floor branch from ae52f90 to b3920a8 Compare April 30, 2020 06:08
@XhmikosR XhmikosR marked this pull request as ready for review April 30, 2020 06:50
@XhmikosR XhmikosR requested a review from a team as a code owner April 30, 2020 06:50
@XhmikosR
Copy link
Member Author

IE and old Edge do benefit from double tilde. Not that it matters a lot but anyway, I removed the change from 4.4.x.

@XhmikosR XhmikosR requested a review from Johann-S May 2, 2020 13:13
@XhmikosR XhmikosR merged commit 7966167 into master May 14, 2020
@XhmikosR XhmikosR deleted the master-xmr-math-floor branch May 14, 2020 06:46
olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 2020
Nowadays, browser engines have improved a lot and `Math.floor` is the same, if not faster.
Also, clarity is better than micro-optimizations in this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants