imbajin commented on code in PR #2861:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2861#discussion_r2313270548


##########
hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/Condition.java:
##########
@@ -137,6 +137,12 @@ public enum RelationType implements BiPredicate<Object, 
Object> {
             return true;
         });
 
+        private static final Set<RelationType> RANGE_TYPES =

Review Comment:
   **Performance optimization**: Excellent refactoring! Moving these constant 
sets to static final fields avoids recreating the same ImmutableSet instances 
on every method call. This is a significant performance improvement for 
frequently called methods.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to