Operate over already allocated memory #3839
DanielLazarHTDM
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
The library is allocator-aware, so that'd be the place to start. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a question about maybe improving this library. I was wondering if it is possible to operate over already allocated memory.
My motivation is because of inter process communication. I am using https://github.com/eclipse-iceoryx/iceoryx for it which is based on shared memory between processes and zero copy approach. I would like to share JSON between two processes.
With current implementation I would need to:
I was thinking about it and there are two copy which are not necessary from my point of view. Suggested way if it is possible.
I know there are arrays. Unknown size of fields etc. I am just asking if it has technicall solution. Maybe we can help by some static map of fields data types to have it "serialized" directly during operating with final buffer.
It would be great to achieve this since another process in iox-environment will have access to same shared memory so pointer addresses will fit and simply works without copy ;-)
Boost seems to have something like that. https://www.boost.org/doc/libs/1_80_0/libs/json/doc/html/json/quick_look.html
Let me know, thank you Dan
Beta Was this translation helpful? Give feedback.
All reactions