-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support for object-array #113
Comments
Hi Isak, I'm unfortunately not familiar enough with Datascript to be sure what you mean by "work with" in this context, or what the various possibilities are. But assuming there's a decent motivation for supporting object array serialization, I can comment on the id set question. The value of the One reasonable option would be to just to define a single If there's ever a motivation to further optimize the space usage, you could introduce the other variants in a non-breaking way by just renaming Does that make sense? I'd probably prefer that route, just as a safe way of gauging demand for this type.
Not sure off hand. You could check the byte-array sequence to identify the type id being used. Hope that helps! |
Makes complete sense, thanks! |
Great, merging manually in a moment- thanks Isak! |
I'm seeing if I can make nippy work with datascript without having to take a slow / inefficient approach, and object-array seems to be among the types that are stopping things.
Does this sound reasonable to add support for? If so, should it get its own set of type ids like byte arrays do? (E.g.,
objects-[0, sm, md, lg]
?)Btw, I see that int-arrays work, though I couldn't immediately see how (there is no
[I
class check like how there is a[B
check for byte arrays). Is it via java serialize, edn, or something else?The text was updated successfully, but these errors were encountered: