You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2019/04/27 17:12:00 UTC
[jira] [Closed] (MNG-6629) DefaultModelValidator.validateId is
inefficient
[ https://issues.apache.org/jira/browse/MNG-6629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hervé Boutemy closed MNG-6629.
------------------------------
Resolution: Fixed
Assignee: Hervé Boutemy
Fix Version/s: 3.6.2
fixed in https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=baed5a294fc003fdf654aa7f5a690f3117c3b267
thank you
> 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
> Assignee: Hervé Boutemy
> Priority: Major
> Fix For: 3.6.2
>
>
>
> 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)