-
Bug
-
Resolution: Done
-
Major
-
7.61.0.Final
-
None
-
2021 Week 43-45 (from Oct 25)
-
2
-
-
NEW
-
NEW
Currently, if a predicate is shared among lots of rules, materialized lambda predicate would have code like this.
@Override() public org.drools.model.functions.PredicateInformation predicateInformation() { org.drools.model.functions.PredicateInformation info = new org.drools.model.functions.PredicateInformation("value > $a.value"); info.addRuleNames("R0", "drlFile.drl", "R1", "drlFile.drl", "R10", "drlFile.drl", "R100", "drlFile.drl", "R1000", "drlFile.drl", "R1001", "drlFile.drl", "R1002", "drlFile.drl", "R1003", "drlFile.drl", "R1004", "drlFile.drl", "R1005", "drlFile.drl", "R1006", "drlFile.drl", "R1007", "drlFile.drl", "R1008", "drlFile.drl", "R1009", "drlFile.drl", "R101", "drlFile.drl", "R1010", "drlFile.drl", "R1011", "drlFile.drl", "R1012", "drlFile.drl", "R1013", "drlFile.drl", "R1014", "drlFile.drl", "R1015", "drlFile.drl", "R1016", "drlFile.drl", "R1017", "drlFile.drl", "R1018", "drlFile.drl", "R1019", "drlFile.drl", "R102", "drlFile.drl", "R1020", "drlFile.drl", "R1021", "drlFile.drl", "R1022", "drlFile.drl", "R1023", "drlFile.drl", "R1024", "drlFile.drl", "R1025", "drlFile.drl", "R1026", "drlFile.drl", "R1027", "drlFile.drl", "R1028", "drlFile.drl", "R1029", ...
It could be slow, consume memory, and even fail to compile. We should set an upper limit.