OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JAVA] Disable debugging in the client


Hi Folks,

I recently realized that BaseAllocator.DEBUG is always true:

https://github.com/apache/arrow/blob/e69659d9cb4b895dcc45a8f10979789dc2324872/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java#L38
https://github.com/apache/arrow/blob/e69659d9cb4b895dcc45a8f10979789dc2324872/java/memory/src/main/java/org/apache/arrow/memory/util/AssertionUtil.java#L27

I noticed it because by enabling debugging, it logs the history of bytebuf
allocation which uses significant amount of CPU. I don't see a way of
disabling it other than using reflection. Is this intentional?

Thanks,
Zhenyuan