You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/02/07 20:31:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Michael Osipov updated MNG-7686:
--------------------------------
    Summary: Speed up by replacing non-pattern #replaceAll() with #replace() or precompiled patterns  (was: Speedup 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, 3.9.1-candidate, 4.0.x-candidate
>
>
> 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)