79624312

Date: 2025-05-16 00:20:52
Score: 1.5
Natty:
Report link

If you're trying to opt for performance: Runtime.getRuntime().totalMemory()/freeMemory()/maxMemory() are inlined native calls, whereas MemoryMXBean.getHeapMemoryUsage() involves more indirection and object allocation.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: oussama louati