Hi again,

Trying out the new 28 EA build.

The project I was doodling on was a 1-1 translation of the parser library
from the Elm language (
https://package.elm-lang.org/packages/elm/parser/latest/)

I made an example program parsing a big text file of points

    [ (1, 2)   ;   (4, 1);(34,11) ]

After switching all the records to value classes I see a consistent slowdown

Before Value Classes

PT7.275514833S
PT6.425502792S
PT6.3636795S
PT6.386459292S
PT6.617603334S
PT6.635160292S
PT6.653826292S
PT6.593240083S
PT6.601129208S
PT6.606801584S

After Value Classes

PT7.736279333S
PT7.196870292S
PT7.315497417S
PT7.232062125S
PT7.285313833S
PT7.235185834S
PT7.199234042S
PT7.174771S
PT7.224577666S
PT7.185029042S

Repo and hastily constructed demo are here
https://github.com/bowbahdoe/elm-parser-java

Reply via email to