Skip to content

Commit

Permalink
Cache jitted function.
Browse files Browse the repository at this point in the history
  • Loading branch information
groutr committed Feb 5, 2024
1 parent c234320 commit 91176eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysheds/_sgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ def count(start=0, step=1):
yield n
n += step

@njit
@njit(cache=True)
def _priority_flood(dem, dem_mask, tuple_type):
open_cells = typedlist.List.empty_list(tuple_type) # Priority queue
pits = typedlist.List.empty_list(tuple_type) # FIFO queue
Expand Down

0 comments on commit 91176eb

Please sign in to comment.