I accidentally sent the message prematurely.
In case #2, I simply search for the values and save the result into the map (the exact same result I now realize):
"lowerValue" : data($context//packagedElement[@xmi:id=$currID]/ownedAttribute[@xmi:id=$propList[2 + $mult]]/lowerValue/[@value]),
"upperValue" : data($context//packagedElement[@xmi:id=$currID]/ownedAttribute[@xmi:id=$propList[2 + $mult]]/upperValue/[@value])
Total Time: 19.98 ms
I see that I am performing the same query twice the amount of times in case #1, but I'm failing to see how this exponentially increases the time complexity.
Any explanation or reference to reading material to help me understand this situation would be greatly appreciated.
Thanks,
Jordan Castillo