js-bson
js-bson copied to clipboard
perf(NODE-6126): improve Long.fromBigInt performance
Description
Refactor Long.fromBigInt
to only use bit math.
What is changing?
Improve performance of Long.fromBigInt
Is there new documentation needed for these changes?
No.
What is the motivation for this change?
Use a more efficient algorithm for Long.fromBigInt
Release Highlight
Optimize performance of Long.fromBigInt
Long.fromBigInt
has been refactored to rely bit math only.
Double check the following
- [x] Ran
npm run check:lint
script - [x] Self-review completed using the steps outlined here
- [x] PR title follows the correct format:
type(NODE-xxxx)[!]: description
- Example:
feat(NODE-1234)!: rewriting everything in coffeescript
- Example:
- [x] Changes are covered by tests
- [x] New TODOs have a related JIRA ticket