Closed keith-turner closed 4 months ago
Was looking at #69 and noticed how that code mimicked the existing code with loops like the following for the Accumulo code. Was thinking the inner loop is usually a singleton list and it would be nice to get rid of the loop when it is a singleton. That is what this PR does, it removes the inner loop when its singleton.
for(var expression : expressions) {
for(var evaluator : evaluators){
// evaluate expression using evaluator
}
}
Simplified the code to avoid looping when there is a single set of authorizations. This change was made in an attempt to improve performance and it did very slightly.
Before this change saw the following.
And after this change saw the following.
The performance improvement is slight so maybe not worthwhile. However this change simplified the evaluator code a good bit, so that is worthwhile.