-
Notifications
You must be signed in to change notification settings - Fork 5
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
Delete/Deprecate toArray
, toCanonical
, and toString
#61
Comments
If you want to hand over Using Anyway, the interface is experimental, so I would not care much about it. If more people are serious about changing the interface and remove the experimental status from it, we should set a scope and time frame. Otherwise, I fear discussions will not be very productive or won't happen at all. |
The danger is that users may not know better and simply use
Sure, I think we can have both. It seems now there are more devs/users interested in the Dataset spec so hopefully we have enough interest to drive productivity. |
I use all of those all the time. The I agree with the other two points. And |
toArray
andtoString
are critically memory-intensive calls for any large dataset. We are already operating in ES environments with limited memory and these methods will punish the library when GC panics.What is the purpose of
toArray
anyway? The way I see it, there are no legitimate use-cases for an array of quads that cannot be handled by Dataset alone or in tandem with a serializer.toString
is also redundant. This sort of task should be handled by piping to a serializer. We should document all these as examples.toCanonical
is another dangerous 'buffer-everything-into-a-string' method. This should be replaced with a method that returns a new Dataset, and complemented with another method that returns the normalized hash string of a dataset.The text was updated successfully, but these errors were encountered: