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] [Created] (MNG-7686) Speedup by replacing non-pattern #replaceAll() with #replace() or precompiled patterns

Michael Osipov created MNG-7686:
-----------------------------------

             Summary: Speedup 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
             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)