segment
segment copied to clipboard
Store cached Pattern objects as WeakRefs
This will avoid wasting memory when splitting is finished and we don't need to worry about garbage collecting them manually.
This will avoid wasting memory when splitting is finished and we don't need to worry about garbage collecting them manually.