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:
2025-04-28 15:09:23 +02:00
parent d9765a51d8
commit 1757034e0b

View File

@@ -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;
};