Leaky.java:
Used Memory after GC: 52.73 MB
NonLeaky.java:
Used Memory after GC: 2.90 MB
NonLeakyReactFX.java:
Used Memory after GC: 0.98 MB
The pure JavaFX NonLeaky
solution breaks the fluency, because you have to store an intermediate binding in order to be able to dispose it later. The NonLeakyReactFX
solution is fluent, but employs a third-party library ReactFX.