commit | a7a860d3eab7539c53a7d0ed0ea8ddd9e894e532 | [log] [tgz] |
---|---|---|
author | Benoit Tellier <btellier@linagora.com> | Thu Jun 17 15:13:20 2021 +0700 |
committer | Tellier Benoit <btellier@linagora.com> | Fri Jun 18 18:44:44 2021 +0700 |
tree | 5676c68514a2cf2a569b03a9768e15bdcef399f3 | |
parent | 46f88dbe77274c6cd371297f97d738aa51778cf9 [diff] |
MIME4J-302 Parser should avoid multiple calls to "toLowerCase" I was surprised MIME4J parsing spends 18% of its time calling toLowerCase on header names. This represents 12% of allocated memory. By holding the lowerCased name as part of the field name, and doing lazy initialization on it we can get this down to 6%.