Skip to content

Use a string list for manifest search paths on windows#1923

Closed
charles-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
charles-lunarg:use_str_list_for_windows_search_paths
Closed

Use a string list for manifest search paths on windows#1923
charles-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
charles-lunarg:use_str_list_for_windows_search_paths

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

To save allocations, paths to search for manifests are combined into a single string delineated by path separators. This causes call sites to need to allocate the string if it is null and handle resizing if the path to add to the string doesn't fit. Using a string list simplifies the code substantially and makes handling out of memory conditions easier. This commit only modifies the Windows specific search paths to use a string list. Future work is needed to convert the rest of the codebase over to using a string list to store the search paths.

To save allocations, paths to search for manifests are combined into a
single string delineated by path separators. This causes call sites to
need to allocate the string if it is null and handle resizing if the
path to add to the string doesn't fit. Using a string list simplifies
the code substantially and makes handling out of memory conditions
easier. This commit only modifies the Windows specific search paths
to use a string list. Future work is needed to convert the rest of the
codebase over to using a string list to store the search paths.
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 763333.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 763350.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3525 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3525 passed.

@charles-lunarg

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #1928

I would rather replace all search path logic in one commit than iterate it piecemeal. I originally wrote this PR to see how practical the change was. Seeing that it was quite straightforward, applying it to the rest of the codebase was not difficult.

@charles-lunarg charles-lunarg deleted the use_str_list_for_windows_search_paths branch June 8, 2026 20:03
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