Stephen Cameron
2014-06-07 13:40:11 UTC
using @xml:id doesn't seem to improve the speed
Frorm the profiler.
XPath Expressions Cumulative Evaluation Time:
- "label-set[@xml:id='add']/label[@lang=../../@lang]": 673ms
- "label-set[@xml:id='back']/label[@lang=../../@lang]": 499ms
- "label-set[@xml:id='instr-number-max']/label[@lang=../../@lang]": 208ms
- "label-set[@xml:id=current()/@id]/label[@lang=../../@lang]": 192ms
- "label-set[@xml:id='pattern']/label[@lang=../../@lang]": 180ms
- "label-set[@xml:id='true-false']/label[@lang=../../@lang]": 174ms
- "label-set[@xml:id='add-pattern-restr']/label[@lang=../../@lang]": 170
ms
- "label-set[@xml:id='instr-add-enum']/label[@lang=../../@lang]": 170ms
- "label-set[@xml:id='insert-cloned']/label[@lang=../../@lang]": 169ms
- "label-set[@xml:id='number-min-incl']/label[@lang=../../@lang]": 169ms
- "label-set[@xml:id='add-enumeration']/label[@lang=../../@lang]": 168ms
- "label-set[@xml:id='number-min-excl']/label[@lang=../../@lang]": 167ms
- "label-set[@xml:id='number-max-incl']/label[@lang=../../@lang]": 165ms
- "label-set[@xml:id='number-max-excl']/label[@lang=../../@lang]": 164ms
-
"if(@type='xs:string',instance('labels')/label-set[@xml:id='its-length-or-valid']/label[@lang=../../@lang],instance('labels')/label-set[@xml:id='valid-range-of']/label[@lang=../../@lang])":
156ms
- "label-set[@xml:id='length']/label[@lang=../../@lang]": 106ms
- "label-set[@xml:id='maximum-length']/label[@lang=../../@lang]": 101ms
- "label-set[@xml:id='minimum-length']/label[@lang=../../@lang]": 100ms
- "label-set[@xml:id='delete']/label[@lang=../../@lang]": 88ms
- "label-set[@xml:id='instr-number-min']/label[@lang=../../@lang]": 88ms
- Others: 5102ms
- Total: 9009ms
Frorm the profiler.
XPath Expressions Cumulative Evaluation Time:
- "label-set[@xml:id='add']/label[@lang=../../@lang]": 673ms
- "label-set[@xml:id='back']/label[@lang=../../@lang]": 499ms
- "label-set[@xml:id='instr-number-max']/label[@lang=../../@lang]": 208ms
- "label-set[@xml:id=current()/@id]/label[@lang=../../@lang]": 192ms
- "label-set[@xml:id='pattern']/label[@lang=../../@lang]": 180ms
- "label-set[@xml:id='true-false']/label[@lang=../../@lang]": 174ms
- "label-set[@xml:id='add-pattern-restr']/label[@lang=../../@lang]": 170
ms
- "label-set[@xml:id='instr-add-enum']/label[@lang=../../@lang]": 170ms
- "label-set[@xml:id='insert-cloned']/label[@lang=../../@lang]": 169ms
- "label-set[@xml:id='number-min-incl']/label[@lang=../../@lang]": 169ms
- "label-set[@xml:id='add-enumeration']/label[@lang=../../@lang]": 168ms
- "label-set[@xml:id='number-min-excl']/label[@lang=../../@lang]": 167ms
- "label-set[@xml:id='number-max-incl']/label[@lang=../../@lang]": 165ms
- "label-set[@xml:id='number-max-excl']/label[@lang=../../@lang]": 164ms
-
"if(@type='xs:string',instance('labels')/label-set[@xml:id='its-length-or-valid']/label[@lang=../../@lang],instance('labels')/label-set[@xml:id='valid-range-of']/label[@lang=../../@lang])":
156ms
- "label-set[@xml:id='length']/label[@lang=../../@lang]": 106ms
- "label-set[@xml:id='maximum-length']/label[@lang=../../@lang]": 101ms
- "label-set[@xml:id='minimum-length']/label[@lang=../../@lang]": 100ms
- "label-set[@xml:id='delete']/label[@lang=../../@lang]": 88ms
- "label-set[@xml:id='instr-number-min']/label[@lang=../../@lang]": 88ms
- Others: 5102ms
- Total: 9009ms