-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Novel escaping algorithm #1384
Comments
Can you provide an example in jackson-databind where this would be used? |
yes, actually I see this could be "partially" applied here -> https://github.com/FasterXML/jackson-core/blob/2.19/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java#L1758-L1765 What you got here is exactly the same as https://lemire.me/blog/2024/10/14/table-lookups-are-efficient/ which I have improved in https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/6236934cffb0de1d3f17dca43d242b735a4a2125/2024/10/14/src/main/java/me/lemire/MyBenchmark.java#L258-L269 i.e.
In this way we can reduce the number of branches trying to optimize whatever is latin and NOT belonging to special control chars (0-31 IIRC?). |
Might be some partial overlap with #1349. Jackson-core would probably be a better place for an escaping implementation. |
yep it looks like it could be part of such, but please 🙏 suggest to that user to use JMH and not handrolled bench... 😢 |
Yes, escaping definitely in Would perhaps suggest working on |
Is your feature request related to a problem? Please describe.
Hi,
I made a novel, simple and super fast branch-free escaping algorithm at lemire/Code-used-on-Daniel-Lemire-s-blog#116 and I would like to contributi here if it is welcome. Any feedback? Where I should look at?
Describe the solution you'd like
It's based on lemire/Code-used-on-Daniel-Lemire-s-blog#116
Usage example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: