Branch: refs/heads/master
Home: https://github.com/jenkinsci/jenkins
Commit: 76bfee23a04e96507fc9dea4ff7564ac86424588
https://github.com/jenkinsci/jenkins/commit/76bfee23a04e96507fc9dea4ff7564ac86424588
Author: Vincent Latombe <[email protected]>
Date: 2023-08-23 (Wed, 23 Aug 2023)
Changed paths:
M core/src/main/java/hudson/model/Label.java
M core/src/main/java/hudson/model/Node.java
M core/src/main/java/hudson/model/Slave.java
M core/src/main/java/jenkins/model/Jenkins.java
A test/src/test/java/hudson/model/labels/LabelBenchmarkTest.java
Log Message:
-----------
Optimize Label parsing calls (#8395)
* Optimize Label#parse for simple label
For a simple label, this speeds up lookup of an existing simple label (no
expression used): 16ns vs 106ns (6x faster)
* Fix reviews
* Fix include
* Avoid parsing label every time getAssignedLabels is called
* Store Set<LabelAtom> at Node descendants level
* Compute it whenever labelString is updated
* Fix spotbugs / test issue
* Make it restricted
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/jenkins/push/refs/heads/master/377e36-76bfee%40github.com.