Search code examples
performancememory-managementjavafxobservablelist

JavaFX: List vs ObservableList performance/memory usage


In the JavaFX doc it says:

A list that allows listeners to track changes when they occur.

Since the ObservableList can do more, I'm wondering if there is a noticable diffrence in performance or memory usage between these two? (I'm using JavaFX 8)


Solution

  • I think there is no performance (memory leak) differences since ObservableList extends list or map with an observability feature advantage. Take a look here