Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
More performance optimization along the lines of #222.
Details
Re the call to
exists()
in_open()
:TileDB-Py
on Add __enter__/__exit__ for TileDB Groups TileDB-Inc/TileDB-Py#1124.exists()
call can be completely omitted in with no negative effects: the exception wording is quite clear and appropriate now.exists()
(no longer called here) was doingtiledb.object_type()
which makes two REST-server calls: open-array to return is-array (resulting in a 404 for us), and open-group to return is-group (resulting in a 200 for us). Now we avoid the 404 as well as the 200 (both of which had server-side time costs in auth).Re
_get_child_uris()
:Profiling
time-soma-ctor.py
Before:
After:
time-print-uris.py
Before:
After:
time-obs-shape.py
Before:
After: