You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Benoit Tellier (Jira)" <mi...@james.apache.org> on 2021/09/18 07:39:00 UTC

[jira] [Closed] (MIME4J-304) DecoderUtil::decodeEncodedWords should not rely on REGEXP

     [ https://issues.apache.org/jira/browse/MIME4J-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed MIME4J-304.
---------------------------------
    Resolution: Fixed

> DecoderUtil::decodeEncodedWords should not rely on REGEXP
> ---------------------------------------------------------
>
>                 Key: MIME4J-304
>                 URL: https://issues.apache.org/jira/browse/MIME4J-304
>             Project: James Mime4j
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.8.5
>            Reporter: Benoit Tellier
>            Priority: Major
>              Labels: performance
>             Fix For: 0.8.6
>
>         Attachments: decode_handwritten_parser.png, decode_with_regex.png
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Rationals: regular expressions are costly to execute, we are likely better off writing a parser for this.
> See attached:
>  - The flameGraph before (regex) when using JMAP
>  - The flameGraph after (hand written parser) when using JMAP



--
This message was sent by Atlassian Jira
(v8.3.4#803005)