-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature/deserialize #20
Feature/deserialize #20
Conversation
…imdJson/common.hpp so build_data_frame() can go where it should have been (inst/include/RcppSimdJson/deserialize/dataframe.hpp)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like very fine work.
One thing that is a bit is that you seem to comingled this with an upgrade to (upstream) simdjson. Was that intentional / needed by something else?
Nothing actually requires it and I should've done it separately. Initially it was another sanity check that everything not only works, but works with the updates upstream... and then I left it in. I have vectorized (in the R sense) versions to parse multiple strings and multiple files ready to go to maximize the parser efficiency (instead of creating a new one over and over w/ It should've done the sync separately. That's 100% my bad. |
Stuff happens. Do you just want to drop another commit on top and restore two two files? |
Yes, I'll get it sorted ASAP. |
Sounds good, and no need to rush. |
The upstream issue has been reproduced. It should be "easy" to fix. :-) We will fix it before release 0.4 (which is coming soon). cc @jkeiser |
@lemire Your response time is amazing. We all really appreciate it. @eddelbuettel The previous file versions have been restored and vectorized versions of |
I'll merge. It is still only from your branch off a fork of this into a branch here so we do need another pass anyway before any of this becomes "real". |
Many refinements following some real-world usage:
int64_t
todouble
casting bugenum
s,constexpr
functions, exception options) used in multiple places.load_json()
function to read JSON files.deserialize_json()
Fingers crossed, but I feel more confident this is sustainable.
Last thoughts:
inst/include/RcppSimdJson/common.hpp
), butR CMD check
is passing for both cases..load_many()
/.parse_many()
by now, but they're going to take some more thought.