Unfolding headers skips the line-break and indentation characters
so the result will be at worst the same size as the original header.
Since unfolding is implemented as appending characters one by one to
the result bytearray, we can pre-allocate the destination field at
the beginning of the loop.
Details
Details
- Reviewers
vkrause - Commits
- R180:a3fe4a09d142: Preallocate space when unfolding headers
Diff Detail
Diff Detail
- Repository
- R180 PIM: KMime
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.