Re: [rules-users] Is protobuf cache actually used?

2014-07-08 Thread Edson Tirelli
It is a bit convoluted, indeed, but AFAIK, it is using the cache and working fine. The cache is populated here: https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java#L301 It is set here:

Re: [rules-users] Is protobuf cache actually used?

2014-07-08 Thread Federico Bertola
Hi Edson, now I figured that out! Thanks for your patience :) Federico. On 07/08/2014 02:13 PM, Edson Tirelli wrote: It is a bit convoluted, indeed, but AFAIK, it is using the cache and working fine. The cache is populated here:

Re: [rules-users] Is protobuf cache actually used?

2014-07-07 Thread Edson Tirelli
Federico, Not sure why you say it is not used? Drools tries to use any pre-compiled resource bytecode if it is available in the cache. If it is not available, it falls back to JIT compilation:

Re: [rules-users] Is protobuf cache actually used?

2014-07-07 Thread Federico Bertola
Hi Edson, yes I saw that the JavaDialect class retrieve the compilation cache from the conf, but after a quick search it seems no one use the setCompilationCache method of KnowledgeBuilderConfigurationImpl, not even in the tests. So I was wondering what was the best way to use it... Maybe I

[rules-users] Is protobuf cache actually used?

2014-07-05 Thread Federico Bertola
Hi, from what I see, the protobuf cache that the KnowledgeBuilder produce and saves as *.cache, is not currently used anywhere, right? If so, what would it be required to reload the compilation data inside the KnowledgeBuilder? There's something I'm missing or there is some piece of code