Open jesse-gallagher opened 3 years ago
Currently, the isXspUrl and doService methods use a test like this to identify matches:
isXspUrl
doService
String pathInfo = getChompedPathInfo(fullPath); boolean match = this.targets.keySet().stream() .anyMatch(contextRoot -> pathInfo.equals(contextRoot) || pathInfo.startsWith(contextRoot + '/'));
While that's fine, this is a performance-sensitive bit of code, and so it might be worth it to investigate a more-optimized routine for this, like what I think Undertow does internally.
Currently, the
isXspUrl
anddoService
methods use a test like this to identify matches:While that's fine, this is a performance-sensitive bit of code, and so it might be worth it to investigate a more-optimized routine for this, like what I think Undertow does internally.