Skip to content

Commit

Permalink
use functools.lru_cache to maintain python <3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pspillai committed May 3, 2024
1 parent 4e6d766 commit ab6773c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ramba/shardview_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _index_to_base_internal(sv, zero_tup, index, bcastval):
t = UT.tuple_setitem(t,i,bo + (bcastval if invmap[i] < 0 else offset[invmap[i]]) )
return t

@functools.cache
@functools.lru_cache(maxsize=None)
def tuple_n(n):
return (0,)*n

Expand Down

0 comments on commit ab6773c

Please sign in to comment.