Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.6.0
Description
while working on MNG-6571, we found that this could enhance performance when many versions are compared: perhaps not in Maven builds, since this is probably negligible, but in other scenario where version comparison is used, this could be useful
see https://github.com/apache/maven/blob/master/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
for every Integer, a BigInteger is currently used
but for integer that have less than 10 digits, an int would be sufficient and would be a lot more efficient
and for integers that are less than 19 digits, a long would be the way to go
the biggest numbers we get usually is the timestamp of a SNAPSHOT, like 20171015.230843 (YYYYMMDD.HHmmss), then an int will be sufficient in the vast majority of case