Skip to content

Optimize opening arrays — part 2 - #5662

Merged
teo-tsirpanis merged 6 commits into
mainfrom
teo/array-open-opt-2
Oct 15, 2025
Merged

Optimize opening arrays — part 2#5662
teo-tsirpanis merged 6 commits into
mainfrom
teo/array-open-opt-2

Conversation

@teo-tsirpanis

Copy link
Copy Markdown
Member
  • Refactored URI to skip some checks when we are creating URIs from existing URIs.
  • Eliminated copyings of ArrayDirectory.

Profiler results are available in CORE-383.


TYPE: NO_HISTORY

@ypatia ypatia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements!

Comment thread tiledb/sm/array/array_directory.h
* @param create_raw CreateRawMarker dummy value.
* @param uri Rvalue reference to string.
*/
URI(const CreateRawMarker, std::string&& uri)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
URI(const CreateRawMarker, std::string&& uri)
URI(const CreateRawMarker&, std::string&& uri)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type has zero size, so it shouldn't make a difference. Marker types are passed by value in the STL, for example std::in_place_t in optional.

Comment thread tiledb/sm/filesystem/uri.h Outdated
Comment thread tiledb/sm/filesystem/uri.h Outdated
@teo-tsirpanis
teo-tsirpanis merged commit 383faf0 into main Oct 15, 2025
107 of 108 checks passed
@teo-tsirpanis
teo-tsirpanis deleted the teo/array-open-opt-2 branch October 15, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants