[drape] Refactor apply_feature_functors #6243

Merged
root merged 3 commits from pastk-drape-apply_feature_functors into master 2023-10-10 20:54:51 +00:00

3 commits

Author SHA1 Message Date
d4e5b2f623 change non-null ptrs passing to refs 2023-10-10 17:08:39 +03:00
de0ad7f755 review fixes 2023-10-10 14:50:09 +03:00
214aa559a9 [drape] Refactor apply_feature_functors
Optimizations:
- don't parse a road ref if there is no shield drule
- don't process a shield drule if there are no road shields in a ref
- call ClipSplineByRect() once per linear feature (not for each line drule)
- calculate areaDepth for BG-by-size areas only
...and many minor things like replace redundant checks with asserts, less params wrapping and passing, simpler structure, etc.

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-10-08 21:52:18 +03:00