-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON, Performance
Use Case
As a BSON user
I want Long.fromBigInt to be performant
So that I can efficiently translate to the Long type
User Impact
- Any user using Long.fromBigInt
Dependencies
- None
Unknowns
- Is there a performance difference between bigint literals and BigInt(number)
Acceptance Criteria
Implementation Requirements
- Remove stringifying to translate BigInt to Long
- Replace with bitwise operations that separate the high and low 32 bits and call the Long constructor.
Testing Requirements
- Existing tests
- Manually check performance improvements
Documentation Requirements
- None
Follow Up Requirements
- None