Changes between Initial Version and Version 1 of Ticket #16982
- Timestamp:
- 2018-11-11T15:05:58+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16982 – Description
initial v1 9 9 I've noticed that this constructor is executed thousands of times: 10 10 {{{ 11 #!java 11 12 public MapCSSTagChecker() { 12 13 super(tr("Tag checker (MapCSS based)"), tr("This test checks for errors in tag keys and values.")); … … 15 16 The reason is this code line: 16 17 {{{ 18 #!java 17 19 final TestError error = check.getErrorForPrimitive(p, selector, env, new MapCSSTagCheckerAndRule(check.rule)); 18 20 }}} 19 21 which is executed for many nodes because of rules like this 20 22 {{{ 23 #!mapcss 21 24 way[highway][area!=yes][!tunnel][!covered] > node { 22 25 set node_in_highway; 23 26 } 27 }}} 24 28 The attached mini patch avoids this by checking first if check.errors is empty. 25 }}}26 29 {{{ 27 30 Build-Date:2018-11-11 09:58:32


