You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Oehme (JIRA)" <ji...@apache.org> on 2019/04/11 09:10:00 UTC

[jira] [Commented] (MNG-6629) DefaultModelValidator.validateId is inefficient

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

Stefan Oehme commented on MNG-6629:
-----------------------------------

See [https://github.com/apache/maven/pull/242]

> DefaultModelValidator.validateId is inefficient
> -----------------------------------------------
>
>                 Key: MNG-6629
>                 URL: https://issues.apache.org/jira/browse/MNG-6629
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.0
>            Reporter: Stefan Oehme
>            Priority: Major
>
>  
> I'm currently optimizing a very large (2000+ submodule) project. DefaultModelValidator.validateId is one of the CPU hotspots, as it uses a regex for validating every ID in the model. Iterating over the characters and checking them against valid ranges would be faster and less memory intensive.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)