chinmay-bhat commented on code in PR #787:
URL: https://github.com/apache/iceberg-python/pull/787#discussion_r1632758206
##########
pyiceberg/table/snapshots.py:
##########
@@ -228,6 +229,13 @@ def __eq__(self, other: Any) -> bool:
)
+@lru_cache
Review Comment:
As [the default is
128](https://docs.python.org/3/library/functools.html#functools.lru_cache), I
don't think we need to explicitly define `maxsize=128`.
Also, `_manifests()` is not a public API, so we would *probably* not set the
cache size through user config via pyiceberg.yaml. Is there a use-case where
the user would want to set the cache size?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]