What I would do initially is to check if splitting into two separate access rules with two separate XPaths is faster. Just like it happens, for example, when retrieving a list, where a faster solution is to retrieve two separate lists and then merge them into one, than using "or" operator.
Here is example in one of academy path: Mendix Academy - 4.3 XPath Optimizations