[JAVA-2143] Optimize ASCII BSON CStrings Created: 07/Mar/16  Updated: 09/Mar/16  Resolved: 09/Mar/16

Status: Closed
Project: Java Driver
Component/s: BSON, Performance
Affects Version/s: 3.0.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The 2.x driver has an optimized code path for decoding BSON CStrings that have been determined to be ASCII. This was never ported to the 3.x driver, and the lack of it causes a measurable regression in performance. We should consider porting it the 3.x driver.



 Comments   
Comment by Jeffrey Yemin [ 09/Mar/16 ]

Further profiling shows that as not having a significant benefit, since the built-in UTF_8 decoder has a fast path for ASCII.

Generated at Thu Feb 08 08:56:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.