Skip to content

perf: optimize bigint compare() with static ints#1856

Draft
ChALkeR wants to merge 1 commit intofacebook:static_hfrom
ChALkeR:chalker/perf/bigint/compare/0
Draft

perf: optimize bigint compare() with static ints#1856
ChALkeR wants to merge 1 commit intofacebook:static_hfrom
ChALkeR:chalker/perf/bigint/compare/0

Conversation

@ChALkeR
Copy link

@ChALkeR ChALkeR commented Dec 7, 2025

Summary

compare(_, 0), compare(_, 1), compare(_, -1) are used internally
No need to convert rhs to bigint for those

Also used for 2 and -2 in exp path, but that's likely not significant there

Test Plan

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant