File tree 2 files changed +5
-0
lines changed 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 43
43
Maintenance
44
44
~~~~~~~~~~~
45
45
46
+ * Cache result of ``FSStore._fsspec_installed() ``.
47
+ By :user: `Janick Martinez Esturo <ph03> ` :issue: `1581 `.
48
+
46
49
* Extend copyright notice to 2023.
47
50
By :user: `Jack Kelly <JackKelly> ` :issue: `1528 `.
48
51
Original file line number Diff line number Diff line change 28
28
import zipfile
29
29
from collections import OrderedDict
30
30
from collections .abc import MutableMapping
31
+ from functools import lru_cache
31
32
from os import scandir
32
33
from pickle import PicklingError
33
34
from threading import Lock , RLock
@@ -1540,6 +1541,7 @@ def clear(self):
1540
1541
self .map .clear ()
1541
1542
1542
1543
@classmethod
1544
+ @lru_cache (maxsize = None )
1543
1545
def _fsspec_installed (cls ):
1544
1546
"""Returns true if fsspec is installed"""
1545
1547
import importlib .util
You can’t perform that action at this time.
0 commit comments