-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: BSON, Performance
Issue
Instead of creating a subarray and calling set, run a loop that assigns each of the 12 bytes.
billouboq has created PR #614: Improve ObjectId serialization by around 10% in js-bson
User Impact
- No functional change
- Performance improvement
Dependencies
- None
Unknowns
- Can it be even faster by unrolling the loop?
- Will this always be faster?
Acceptance Criteria
Implementation Requirements
- TBD
Testing Requirements
- Observe performance difference
- Add bespoke benchmark
- Convert user's benchmark to make use of our new benchmark tooling in test/bench
Documentation Requirements
- None
Follow Up Requirements
- None