mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
Sync-base: speed up RemoteObjPusherTxHook
they are immutable, no need to do real equals, they can't be same if different
This commit is contained in:
@@ -19,8 +19,8 @@ public class RemoteObjPusherTxHook implements PreCommitTxHook {
|
||||
@Override
|
||||
public void onChange(JObjectKey key, JData old, JData cur) {
|
||||
boolean invalidate = switch (cur) {
|
||||
case RemoteObjectMeta remote -> !remote.changelog().equals(((RemoteObjectMeta) old).changelog());
|
||||
case JKleppmannTreePersistentData pd -> !pd.queues().equals(((JKleppmannTreePersistentData) old).queues());
|
||||
case RemoteObjectMeta remote -> remote.changelog() != ((RemoteObjectMeta) old).changelog();
|
||||
case JKleppmannTreePersistentData pd -> pd.queues() != ((JKleppmannTreePersistentData) old).queues();
|
||||
default -> false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user