-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avoid converting binary document to tree when possible on later mongo driver versions #2565
Conversation
This makes each
But is probably ok for subclasses
|
5d102c8
to
6f6bc08
Compare
…ment when possible
6f6bc08
to
7a1c275
Compare
So what do you think that the average retained weight of a |
@bantonsson yes, and the majority of them (in my experience with this driver) tend to be the ones we'll instrument (the ones sent to and from the database) which have alignment shadow to absorb the field. The problem is that for the document type where this adds eight bytes, what you're offsetting it against also contains |
If this api is only available in newer versions, why didn't muzzle require an updated version range? |
@tylerbenson the API is available in v4 of the driver (we have two mongo instrumentation modules) |
Ok. I was confused what you were referring to since you made changes to both 3.x and 4.x modules. |
Yes the changes were made in separate commits |
Newer mongo driver versions allow more efficient reading of BSON documents. Unfortunately this isn't possible on older driver versions, so I added some instrumentation to extract the document's buffer and do the same thing manually.