Optimizing rulii
rulii 2.2.0 ran 1.4 million rules a second on one thread. 2.3.0 runs 8.1 million, and the rules do exactly what they did. Where the time was going, what changed, and what we measured and threw away.
rulii 2.2.0 ran 1.4 million rules a second on one thread. 2.3.0 runs 8.1 million, and the rules do exactly what they did. Where the time was going, what changed, and what we measured and threw away.
A validation call costs a fraction of what it did: predefined constraints are checked directly, and a class with nothing else needs no engine around it. The annotations, the API and the violations are unchanged.
Bean Validation annotations cover the easy checks. The cross-field ones and the business rules are where they run out, and where a rule engine earns its place.
The first release: a Jakarta Bean Validation 3.1 provider that runs every constraint as a rulii rule, with @Validate, @Expr and @Bind for what annotations cannot say.