Optimize filter evaluation in rendering

Description

Evaluating a complex SLD (1000+ lines) over a very large dataset, using filters sharing bits (repeated property accesses, repeated sub-conditions) is showing up quite visibly in profiles as the filter machinery is quite generic, property access is too, causing expensive operations to be performed over and over. Memoize the results when possible instead (or make the operations faster when possible).

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Priority

Medium
Configure