[bisq-network/bisq] UI: Replace java.util.Collections with FXCollections (#4388)

cd2357 notifications at github.com
Fri Jul 31 05:29:48 UTC 2020


As per a [JavaFX performance tuning thread](https://wiki.openjdk.java.net/display/OpenJFX/Performance+Tips+and+Tricks), the use of the `FXCollections` API is encouraged when optimizing for performance.

As per the [`FXCollections javadoc`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/FXCollections.html):

> Utility class that consists of static methods that are 1:1 copies of `java.util.Collections` methods.
>
> The utility methods are here mainly for performance reasons. All methods are optimized in a way that they yield only limited number of notifications. On the other hand, `java.util.Collections` methods might call "modification methods" on an `ObservableList` multiple times, resulting in a number of notifications.

Replace all usages of `java.util.Collections` with `javafx.collections.FXCollections` in the `bisq-desktop` project (the only one where JavaFX is used).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/4388
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200730/9955961a/attachment.html>


More information about the bisq-github mailing list