-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Traverse object with Buffer field is SLOW #9
Comments
I'm assuming that when you say "ByteBuffer" you're referring to a node |
Potentially #2 is related. |
Indeed. My Java experience accidentally kicked in :)
Tbh I'd prefer not to copy 1.8MB buffer :) Thanks for response @ljharb |
To be clear, the issue isn't about copying, it's about traversing objects that are "meant" to be treated as leaves/atoms, like a Buffer or a URL (see #10). |
Hi @ljharb!
We are using
traverse
in case where we need to remove sensitive or inappropriate data from object before logging it.And there are cases when we have
Buffer
field in this object. We assuming that this field is sensitive and trying to filter it out.But, unfortunately, CPU profile showed that service spends ~500ms of CPU time inside of traverse.
How to reproduce:
Logs:
v. 0.6.6
v. 0.6.9
Update of the lib makes it better but still it's weird to have 100+ms latency for such case.
Could you please advice, if we are misusing lib or something else?
Thanks
The text was updated successfully, but these errors were encountered: