Skip to content

Commit

Permalink
Use pooled MessageDigest instances
Browse files Browse the repository at this point in the history
Motivation:

We don’t need to allocate MessageDigest every time we want to generate
a WebSocket key.

Modifications:

Introduce ThreadLocal based pools for SHA1 and MD5.

Result:

Less allocations
  • Loading branch information
slandelle committed Oct 27, 2017
1 parent cd442f6 commit f2e165f
Show file tree
Hide file tree
Showing 3 changed files with 536 additions and 523 deletions.

0 comments on commit f2e165f

Please sign in to comment.