-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace toJsonMap function with a lazy value #107
Comments
Before the rewrite, here are the results of benchmarking (with
|
And now with the lazy val :
|
Even better than a 1000x improvement ! |
With
we have
A bit slower so will stick to the existing one |
My idea was more to introduce another/replace later the function as |
Given it's used by
ordered
many times - we can significantly improve performance by computing it only once:snowplow-scala-analytics-sdk/src/main/scala/com.snowplowanalytics.snowplow.analytics.scalasdk/Event.scala
Lines 202 to 203 in 5dc24d9
The text was updated successfully, but these errors were encountered: