pkl icon indicating copy to clipboard operation
pkl copied to clipboard

Slow performance on JVM?

Open Omico opened this issue 4 months ago • 4 comments

Just play around with pkl. It seems that parsing AST takes a very long time.

TLDR. In my PC, pkl takes 3089 ms, and kotlinx-serialization-properties takes 53 ms.

// benchmark.pkl
a {
  b {
    c {
      d = "Hello World!"
    }
  }
}

// benchmark.properties
a.b.c.d=Hello World!

I have created a very simple project for benchmarking. (I didn't use kotlinx benchmark or anything else)

https://github.com/Omico/pkl-benchmark

Omico avatar Feb 04 '24 06:02 Omico