You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/04/03 11:51:00 UTC

[GitHub] [hudi] sekaiga commented on a change in pull request #5060: [HUDI-3652] Make ObjectSizeCalculator threadlocal to reduce memory footprint

sekaiga commented on a change in pull request #5060:
URL: https://github.com/apache/hudi/pull/5060#discussion_r841210698



##########
File path: hudi-common/src/main/java/org/apache/hudi/common/util/ObjectSizeCalculator.java
##########
@@ -54,6 +54,8 @@
  * @author Attila Szegedi
  */
 public class ObjectSizeCalculator {
+  private static final ThreadLocal<ObjectSizeCalculator> objectSizeCalculator = ThreadLocal.withInitial(() -> new ObjectSizeCalculator(CurrentLayout.SPEC));

Review comment:
       done




-- 
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: commits-unsubscribe@hudi.apache.org

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