You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TINKERPOP-3202] Improve performance of RangeGlobalStep (#3251)
https://issues.apache.org/jira/browse/TINKERPOP-3202
Follow up to #3241 to improve performance of RangeGlobalStep by using single counter if not inside repeat and changing parent step check for RepeatStep to occur just once instead of for each call to filter. This change is for performance only and does not affect any semantics.
Copy file name to clipboardExpand all lines: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/RangeGlobalStep.java
+40-8Lines changed: 40 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,18 @@ public final class RangeGlobalStep<S> extends FilterStep<S> implements RangeGlob
46
46
privatelonglow;
47
47
privatelonghigh;
48
48
/**
49
-
* If this range step is used inside a loop there can be multiple counters, otherwise there should only be one
49
+
* Flag to indicate if the step is inside a repeat loop. Can be null if the value has not been initialized yet as
0 commit comments