This repository was archived by the owner on Nov 29, 2020. It is now read-only.
This repository was archived by the owner on Nov 29, 2020. It is now read-only.
Lazy val optimization for pure code #24
Open
Description
We could replace all lazy val
s with the cheapest version of https://github.com/runarorama/latr (@Lazify) by default. If the code is pure, re-evaluating a thunk twice is not a problem and the probability of that happening is minuscule anyway.
See https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html for more background