File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
cucumber-core/src/main/java/io/cucumber/core/runner Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
10
10
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
11
11
12
12
## [ Unreleased]
13
+ ### Added
14
+ - [ Core] Improve caching glue performance ([ #2971 ] ( https://github.com/cucumber/cucumber-jvm/pull/2971 ) M.P. Korstanje & Julien Kronegg)
13
15
14
16
## [ 7.21.0] - 2025-02-02
15
17
### Added
Original file line number Diff line number Diff line change @@ -246,16 +246,17 @@ void prepareGlue(Locale locale) throws DuplicateStepDefinitionException {
246
246
boolean firstTime = stepTypeRegistry == null ;
247
247
boolean languageChanged = !locale .equals (this .locale );
248
248
boolean mustRebuildCache = false ;
249
- if (firstTime || languageChanged || this . dirtyCache ) {
249
+ if (firstTime || languageChanged || dirtyCache ) {
250
250
// conditions changed => invalidate the glue cache
251
251
this .locale = locale ;
252
252
stepTypeRegistry = new StepTypeRegistry (locale );
253
253
stepExpressionFactory = new StepExpressionFactory (stepTypeRegistry , bus );
254
254
stepDefinitionsByPattern .clear ();
255
255
stepPatternByStepText .clear ();
256
256
mustRebuildCache = true ;
257
- this .dirtyCache = false ; // since we must rebuild the cache, it will
258
- // not be dirty the next time
257
+ // since we must rebuild the cache, it will not be dirty the next
258
+ // time
259
+ dirtyCache = false ;
259
260
}
260
261
261
262
// TODO: separate prepared and unprepared glue into different classes
You can’t perform that action at this time.
0 commit comments