JakeChampion opened a new pull request, #14099: URL: https://github.com/apache/trafficserver/pull/14099
`UrlRewrite::URLTable` used the default hash of `std::unordered_map<std::string, ...>`. `_tableLookup()` called `find()` with a `char *`, which made a temporary `std::string` for each lookup. For a host name longer than the small string buffer, that is a heap allocation on each remap lookup. This change gives `URLTable` a transparent hash and `std::equal_to<>`. `_tableLookup()` now calls `find()` with a `std::string_view` of the lowercase host and its known length. I did not measure the effect on performance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
