Skip to content

Commit c55d681

Browse files
committed
MultiDimensionalColumn: don't check memory when loaded
- Avoiding unnecessary memory checks can result in massive performance increases in some (rare) conditions - Bump to 1.0.17
1 parent b97e9a3 commit c55d681

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

datamatrix/_datamatrix/_multidimensionalcolumn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,8 @@ def touch(self, col, try_to_load=False):
631631
# If the current column is loaded, then we return right away, because
632632
# there is no need to free up additional memory by unloading other
633633
# columns
634+
if col.loaded:
635+
return
634636
if col._sufficient_free_memory():
635637
if try_to_load:
636638
col.loaded = True

0 commit comments

Comments
 (0)