IntelLabs / vdms

VDMS: Your Favorite Visual Data Management System
MIT License
84 stars 31 forks source link

Descriptor Set Optimizations: Cache Descriptor Set File Path from Metadata #174

Closed ifadams closed 1 month ago

ifadams commented 1 month ago

Is your feature request related to a problem? Please describe.

In the current flow, any query involving descriptor sets has an additional query to locate the descriptor set file/object. Given that this path is effectively static after the initial creation of a descriptor set, this is inefficient and leads to redundant queries and a considerable slowdown in performance.

Describe the solution you'd like

Instead of querying for the descriptor set location every time, we should cache the location in an associative map so that a named descriptor set can have its path quickly retrieved if its been seen before.

The key area for caching is the get_set_path method within DescriptorsCommand.cc

ifadams commented 1 month ago

Initial change merged, closing.