js-bson icon indicating copy to clipboard operation
js-bson copied to clipboard

perf(NODE-6126): improve Long.fromBigInt performance

Open aditi-khare-mongoDB opened this issue 2 months ago • 1 comments

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
  • [x] Changes are covered by tests
  • [x] New TODOs have a related JIRA ticket

aditi-khare-mongoDB avatar May 02 '24 08:05 aditi-khare-mongoDB