sungwy commented on code in PR #1187:
URL: https://github.com/apache/iceberg-python/pull/1187#discussion_r1769270495


##########
pyiceberg/manifest.py:
##########
@@ -620,6 +623,13 @@ def fetch_manifest_entry(self, io: FileIO, 
discard_deleted: bool = True) -> List
             ]
 
 
+@cached(cache=LRUCache(maxsize=128), key=lambda io, manifest_list: 
hashkey(manifest_list))

Review Comment:
   That's so clever - so the issue was with the function arguments being 'held 
up' by the cache preventing them from being GCed 🤯 🧠 
   
   This is next level @kevinjqliu 💯 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to