Commit 7dc064c
committed
Performance optimizations
Refactor jar lifecycle listener invocation to reduce redundant plugin lookups:
- Fetch listeners once and pass them to beforeJarWrite/afterJarWrite instead of looking them up multiple times
- Create context map only when listeners exist (lazy initialization)
- Reuse DiffPluginImpl instance field instead of creating new instances
- Move timestamp fetch earlier in RebuildTriggerPolicy to simplify file existence check
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>1 parent e195827 commit 7dc064c
2 files changed
Lines changed: 20 additions & 10 deletions
File tree
- biz.aQute.bndlib/src/aQute/bnd/build
- bndtools.core/src/bndtools/central
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
2108 | | - | |
2109 | | - | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
2110 | 2114 | | |
2111 | 2115 | | |
2112 | 2116 | | |
2113 | 2117 | | |
2114 | 2118 | | |
2115 | | - | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
2116 | 2122 | | |
2117 | 2123 | | |
2118 | 2124 | | |
| |||
2143 | 2149 | | |
2144 | 2150 | | |
2145 | 2151 | | |
2146 | | - | |
2147 | | - | |
| 2152 | + | |
| 2153 | + | |
2148 | 2154 | | |
2149 | 2155 | | |
2150 | 2156 | | |
| |||
2155 | 2161 | | |
2156 | 2162 | | |
2157 | 2163 | | |
2158 | | - | |
| 2164 | + | |
| 2165 | + | |
2159 | 2166 | | |
2160 | | - | |
| 2167 | + | |
2161 | 2168 | | |
2162 | 2169 | | |
2163 | 2170 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | | - | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| |||
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
244 | | - | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
0 commit comments