zhengruifeng commented on PR #49412: URL: https://github.com/apache/spark/pull/49412#issuecomment-2577482923
To optimize Py4J calls, does it make sense to further cache the result? e.g. ``` @functools.lru_cache(maxsize=128) def get_jvm_attr(jvm: "JVMView", name: str) -> Any: return getattr(jvm, name) ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org