Message Boards Message Boards

Integrating C++ and the Wolfram Language with LibraryLink Utilities

Posted 4 years ago
POSTED BY: Rafal Chojna
4 Replies
Posted 1 year ago

I have an additional question about DataStore. How do I specify the passing mode of Tensor within a node in DataStore. Let's say I want to pass a constant tensor from Wolfram to C++ side inside a DataStore.

POSTED BY: Kevin Chen

Thanks so much for the detailed description of the otherwise undocumented DataStore!

Is the DataStore functionality you describe here working the same way in all versions from 11.0 until the current 13.1? Have any changes been made to it that one should be aware of? I am asking only about the functionality described in this post (independent of LLU), not any extensions that you did not discuss, should any be present. I am looking to use DataStore for a library (pure LibraryLink, no LLU yet) that must work with Mathematica 11.0 and later. I'm basically asking whether I should be prepared for any surprises.

A final question: Have you ever compared the performance of using DataStore vs WXF serialization for returning multiple results from a function? Is there any reason I should look at WXF (for which I would need to implement a serializer) assuming that: (1) DataStore supports all the types I'm interested in returning and (2) I am only returning a small fixed number of elements. Here I'm assuming that DataStore will definitely be faster than MathLink/WSTP.

POSTED BY: Szabolcs Horvát

There were significant changes made to DataStore API between 11.3 and 12.0, so definitely be prepared for surprises. After 12.0 I can't recall any major changes except for bugfixes.

I haven't compared DataStore with WXF in terms of speed, but I can confirm that at least for passing a list of Strings to/from Library DataStore is significantly faster than WSTP. If you decide to benchmark DataStore against WXF please share your results.

POSTED BY: Rafal Chojna

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract