(Drools 7.68.0 with dialect == MVEL)
I have a KieBase that contains 500 rules. The serialized size of this KieBase is 5MB. That amounts to 10KB/rule. This seems unreasonably large. Loading this KieBase takes up to 20 seconds to deserialize and instantiate in memory. This limits the number of rules a given KieBase can contain. We need to support a separate KieBase per customer (with multiple users per customer), so there are LOTS of KieBase instances of varying sizes which need to be loaded at runtime, and there is not enough memory to keep them all in memory on each server in the cluster.
Isn't there any way to (significantly) reduce the size of the KB prior to serialization?