Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6683

Improve ContextImpl constructor performance

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • None
    • 7.61.0.Final
    • core engine
    • None
    • 2021 Week 43-45 (from Oct 25)
    • NEW
    • NEW

    Description

      ContextImpl constructor implemented with UUID.randomUUID().

      https://github.com/kiegroup/drools/blob/7.60.0.Final/drools-core/src/main/java/org/drools/core/command/impl/ContextImpl.java#L42

      For example, we can observe it consumes some time under StatelessKieSession load test. See attached framegraphs by jmh and async-profiler test.

      The benchmark is
      https://github.com/tkobayas/kie-benchmarks/blob/stateless-benchmark/drools-benchmarks/src/main/java/org/drools/benchmarks/session/StatelessSessionConcurrentBenchmark.java

      executed commands were like

      java -jar target/drools-benchmarks.jar -jvmArgs "-Xms4g -Xmx4g" -foe true -f 1 -t 1 org.drools.benchmarks.session.StatelessSessionConcurrentBenchmark -prof "async:output=flamegraph;event=cpu;simple=true;interval=50000;width=1920;libPath=/home/tkobayas/usr/local/devtools/async-profiler-1.8.1-linux-x64/build/libasyncProfiler.so"
      

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: