Skip to content
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

Could be useful to consider the On Demand API #7

Closed
lemire opened this issue Oct 23, 2020 · 2 comments
Closed

Could be useful to consider the On Demand API #7

lemire opened this issue Oct 23, 2020 · 2 comments

Comments

@lemire
Copy link

lemire commented Oct 23, 2020

This is maybe of interest to you...
https://github.com/simdjson/simdjson/blob/master/doc/ondemand.md

@jorgen
Copy link
Owner

jorgen commented Oct 25, 2020

Yes, I saw this mentioned on reddit! If you squint your eyes, this is similar to how json_struct does this aldrady. json_struct doesn't use a DOM as an intermediate step, but goes directly from tokens to structs/types. I have to check out what the performance difference is now with the new api, but I expect it to be about the same if all the members in the struct is converted into the domain specific type, and simdjson performing even better in the case only 1 member should be populated. I could probably implement the tokenizer api on top of simdjson token api? But I'm affraid it would take some of the fun out of the project for me.

BTW: I'm a keen reader of your blog posts 👍

@lemire
Copy link
Author

lemire commented Oct 25, 2020

This was merely meant as a pointer. :-)

It is a cool project.

@lemire lemire closed this as completed Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants