commit | 128fdc383d39e84958ec3bf39a145c83eb3c93a8 | [log] [tgz] |
---|---|---|
author | Benoit Tellier <btellier@linagora.com> | Fri Jun 18 12:44:55 2021 +0700 |
committer | Tellier Benoit <btellier@linagora.com> | Fri Jun 18 18:44:44 2021 +0700 |
tree | a396fed8abb81411d4528c464ba38e4dbea9a6cb | |
parent | a7a860d3eab7539c53a7d0ed0ea8ddd9e894e532 [diff] |
MIME4J-302 Use lowercase when looking up known headers An optimization implemented in MaximalBodyDescriptor aims at reducing the costs of toLowerCase calls: upon known header names lookup the lowercase version of the field instead of the normal version to benefit optimizations (calling toLowerCase on a lowerCase string do not do allocation, it just iterates String content). It might be worth generalizing it.