Stephen Mallette created TINKERPOP-2625:
-------------------------------------------
Summary: Optimize empty P within/without
Key: TINKERPOP-2625
URL: https://issues.apache.org/jira/browse/TINKERPOP-2625
Project: TinkerPop
Issue Type: Improvement
Components: language, process
Affects Versions: 3.5.1
Reporter: Stephen Mallette
On TINKERPOP-2621 we allowed the grammer to properly process empty
{{P.within/out()}}. From there a next step would be to optimize those a bit:
* {{has(key, within(''))}} is always false in which case we can replace
within('') with false.
* {{has(hey, without(''))}} is always true in which case this step/HasContainer
can be removed from the traversal as a filter.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)