You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/02/08 18:30:00 UTC

[jira] [Commented] (MNG-7686) Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns

    [ https://issues.apache.org/jira/browse/MNG-7686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17686043#comment-17686043 ] 

ASF GitHub Bot commented on MNG-7686:
-------------------------------------

tbw777 opened a new pull request, #991:
URL: https://github.com/apache/maven/pull/991

   [MNG-7686] Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns




> Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns
> ---------------------------------------------------------------------------------------
>
>                 Key: MNG-7686
>                 URL: https://issues.apache.org/jira/browse/MNG-7686
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 3.8.x-candidate, 4.0.0, 4.0.0-alpha-5, 3.9.1
>
>
> From GH: https://github.com/apache/maven/pull/984
> Two improvements can be done:
> 1. Don't use regex-based {{#replaceAll()}} when no regex is required
> 2. When regex is required statically precompile the patterns to avoid the compilation penality over and over again



--
This message was sent by Atlassian Jira
(v8.20.10#820010)