Skip to content

Commit 5414648

Browse files
committed
Memory Benchmarks are up
1 parent 70e220b commit 5414648

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sips/pending/_posts/2013-05-31-improved-lazy-val-initialization.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ We expect that the proposed changes will not change the memory footprint for mos
654654
Since we now use 2 bits per lazy val field instead of 1, for classes having 4 or less lazy val field declarations the memory footprint per instance will thus not grow. For classes having more lazy val field declarations the memory footprint per instance will in most cases not grow since the objects have to be aligned to an 8 byte boundary anyway.
655655

656656
We measured the memory footprint of an array of objects with single lazy val fields. The memory footprint did not change with respect to the current version \[[6][6]\] \[[7][7]\].
657+
The detailed experimental measurements graphs of memory footprint can be seen in graphs.\[[18][18]\]
657658

658659
### Performance ###
659660

@@ -700,7 +701,7 @@ We would like to thank Peter Levart and the other members of the concurrency-int
700701
4. [Program Hangs If Thread Is Created In Static Initializer Block][4]
701702
5. [Java Language Specification, 12.4.2][5]
702703
6. [GitHub Repo with Microbenchmarks][6]
703-
7. [Evaluation Results][7]
704+
7. [Performance Evaluation Results][7]
704705
8. [ScalaMeter GitHub Repo][8]
705706
9. [Lazy Vals in Dotty, Scala Internals Mailing list, February 2014][9]
706707
10. [Lazy Vals in Dotty, Dotty Internals Mailing list, February 2014][10]
@@ -711,14 +712,15 @@ We would like to thank Peter Levart and the other members of the concurrency-int
711712
15. [Introducing Scalafix: a migration tool for Scalac to Dotty, October 2016][15]
712713
16. [@static sip, January 2016][16]
713714
17. [LazyVal Holders in Dotty][17]
715+
18. [Memory Footprint Evaluation Results][18]
714716

715717
[1]: https://groups.google.com/forum/#!topic/scala-internals/cCgBMp5k8R8 "scala-internals"
716718
[2]: http://cs.oswego.edu/pipermail/concurrency-interest/2013-May/011354.html "concurrency-interest"
717719
[3]: http://stackoverflow.com/questions/15176199/scala-parallel-collection-in-object-initializer-causes-a-program-to-hang "pc-object-hang"
718720
[4]: http://stackoverflow.com/questions/7517964/program-hangs-if-thread-is-created-in-static-initializer-block "static-init-hang"
719721
[5]: http://docs.oracle.com/javase/specs/jls/se7/html/jls-12.html#jls-12.4.2 "jls-spec"
720722
[6]: https://github.com/DarkDimius/lazy-val-bench/blob/CallSites/src/test/scala/example/package.scala "lazy-val-bench-code"
721-
[7]: http://lampwww.epfl.ch/~prokopec/lazyvals/report/ "lazy-val-bench-report"
723+
[7]: https://d-d.me/tnc/30/lazy-sip-perf/report "lazy-val-bench-report"
722724
[8]: http://axel22.github.io/scalameter/ "scalameter-code"
723725
[9]: https://groups.google.com/forum/#!msg/scala-internals/4sjw8pcKysg/GlXYDDzCgI0J "scala-internals"
724726
[10]: https://groups.google.com/forum/#!topic/dotty-internals/soWIWr3bRk8 "dotty-internals"
@@ -729,3 +731,4 @@ We would like to thank Peter Levart and the other members of the concurrency-int
729731
[15]: http://scala-lang.org/blog/2016/10/24/scalafix.html
730732
[16]: https://github.com/scala/scala.github.com/pull/491
731733
[17]: https://github.com/lampepfl/dotty/blob/master/src/dotty/runtime/LazyHolders.scala
734+
[18]: https://d-d.me/tnc/30/lazy-mem/report/#config=%7B%22filterConfig%22%3A%7B%22curves%22%3A%5B%22-1%22%2C%220%22%2C%221%22%2C%222%22%2C%223%22%2C%224%22%2C%225%22%2C%226%22%2C%227%22%2C%228%22%5D%2C%22order%22%3A%5B%22param-size%22%2C%22date%22%5D%2C%22filters%22%3A%5B%5B%221000000%22%2C%222000000%22%2C%223000000%22%2C%224000000%22%2C%225000000%22%5D%2C%5B%221477396691000%22%5D%5D%7D%2C%22chartConfig%22%3A%7B%22type%22%3A0%2C%22showCI%22%3Afalse%7D%7D

0 commit comments

Comments
 (0)