Skip to content

Commit

Permalink
lru cache the searches
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed May 28, 2024
1 parent 93238b8 commit f478190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scrnaseq/search_datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sqlite3
from functools import lru_cache
from typing import Union

import pandas as pd
Expand All @@ -17,6 +18,7 @@
__license__ = "MIT"


@lru_cache
def search_datasets(
query: Union[str, GypsumSearchClause],
cache_dir: str = cache_directory(),
Expand Down

0 comments on commit f478190

Please sign in to comment.