tiled
tiled copied to clipboard
Apply size limit to node structures.
Unlike array and dataframe we do not generally know the byte size up front. We work this in two ways:
- Try an optional
est_nbytes()method that Adapters MAY implement to declare their (approximate) size up front. - Within the node serializers, track the cumulative size of data exporter and give up if the limit is reached, raising a specific exception type with meaning to the server.
The UI can then be updated to support node export. It should handle this error correctly.
Latest thinking on this: before handing off to the serializer, walk the node just to tally the size of its children.