[curl/curl] 241310: conncache: lowercase the hash key for better match

Daniel Stenberg <[email protected]> Mon, 31 May 2021 23:30:50 -0700
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/bagder/lowercase-conncache-hash/[email protected]>
  Branch: refs/heads/bagder/lowercase-conncache-hash
  Home:   https://github.com/curl/curl
  Commit: 241310e8073fb149df3a4a6e35d9f8b1c11f5298
      https://github.com/curl/curl/commit/241310e8073fb149df3a4a6e35d9f8b1c11f5298
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M lib/conncache.c

  Log Message:
  -----------
  conncache: lowercase the hash key for better match

As host names are case insensitive, the use of case sensitive hashing
caused unnecesary cache misses and therefore lost performance. This
lowercases the hash key.

Reported-by: Harry Sintonen
Fixes #7159


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits