Open jeswr opened 1 month ago
Many functions would benefit from using #structuredClone
in their implementation. However, this would require an mver bump to deprecate old versions of Node as #structuredClone
is only available from Node v17
And browser? Maybe good to use it conditionally for now.
Seems to be supported across all browsers now https://developer.mozilla.org/en-US/docs/Web/API/structuredClone#browser_compatibility
There is lots of room for optimisation in methods such as
union
anddifference
; in particular, wheneverother
is also anN3Store
and they share an index we can just merge / diff / compare the indices for set operations.See https://github.com/rdfjs/N3.js/pull/392/#discussion_r1694184951