bisq/desktop
Steven Barclay c261933928
Compute height cells lazily to speed up DaoStateMonitorView
Avoid a bottleneck computing the cycle index & calling 'Res.get(..)' for
every block since genesis in the DAO state monitor view, when building
the DaoStateBlockListItem objects, by making the 'height' field lazy. To
do this, pass the cycle index into the constructor using an IntSupplier
and make the height a memoised 'Supplier<String>' with a custom getter.

Also add a unit test to check that the auto-generated equals & hashCode
methods still work as expected, as it isn't totally clear what Lombok
would do when a field type differs from its getter return type.
2020-03-09 15:35:44 +08:00
..
package Handle SNAPSHOT versioning different for rpm packages 2020-02-26 09:49:06 +01:00
src Compute height cells lazily to speed up DaoStateMonitorView 2020-03-09 15:35:44 +08:00