Skip to content

Add caching to general_metadata to avoid repeated metadata parsing#1069

Open
vshnvii wants to merge 1 commit intomalariagen:masterfrom
vshnvii:add-sample-metadata-caching
Open

Add caching to general_metadata to avoid repeated metadata parsing#1069
vshnvii wants to merge 1 commit intomalariagen:masterfrom
vshnvii:add-sample-metadata-caching

Conversation

@vshnvii
Copy link

@vshnvii vshnvii commented Mar 7, 2026

This PR introduces caching for general_metadata results to avoid repeated parsing
of metadata files when the same sample_sets are requested multiple times.

A cache dictionary (_cache_sample_metadata) is added and results are stored
using a tuple of sample_sets as the cache key.

This improves performance when metadata is accessed repeatedly during analysis.

@vshnvii vshnvii force-pushed the add-sample-metadata-caching branch from d1c588a to 629386e Compare March 7, 2026 09:38
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.

1 participant