-
Notifications
You must be signed in to change notification settings - Fork 17
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
detailed documentation and examples #22
Comments
there is not cysimdjson.JSONParser().parse_string function |
it look like that cysimdjson is not yet finished |
The Readme.md says there is a
|
@seperman - you likely used some intermediate (master) version. Current version behaviour:
|
In general, for a newcomers I would recommend to stick with pysimdjson - it is more user-friendly and comparably fast in version 4.0 This project remains alive mainly b/c we are squeeze some performance from it in very specific case: using C API in the code that lives outside of the Python (C code) and still needs an access to parsed JSON structures. |
I'm happy to support this use case if you can describe the API you need exposed on the C side of things. |
The generic idea is that the "other code" (meaning non-Python, maybe Cython, maybe LLVM IR, maybe other compiled/binary code) would like to access the parsed JSON, using simdjson directly using the element that has been parsed by cysimdjson. This is an API: https://github.com/TeskaLabs/cysimdjson/blob/main/cysimdjson/cysimdjsonc.h - it is basically a simplistic wrapper of C++ code in the opaque C memory block + set of bridging functions that allows to call specific method of simdjson. |
I've taken a look at it and I see no issue supporting it, although I might change how you acquire it to be a bit different, passing around a PyCapsule so that it can be passed around safely in C or via Python to other C functions without void typing and with support for garbage collection. I'll look at adding it towards the end of December when the office is on holidays. |
there is not any documentation to introduce any function and module. so it is difficult to use it for a person that have not experience
The text was updated successfully, but these errors were encountered: