diff options
author | Paul Phillips <paulp@improving.org> | 2012-07-04 03:58:37 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-12 09:56:41 +0200 |
commit | e90f79a446414541402cf55e9ac664106a5bc355 (patch) | |
tree | fc33e34a97c3c9137f7217ef788fab74595e6627 /docs/TODO | |
parent | f588976005e532fa274f69e95b2326bbe5994df9 (diff) | |
download | scala-e90f79a446414541402cf55e9ac664106a5bc355.tar.gz scala-e90f79a446414541402cf55e9ac664106a5bc355.tar.bz2 scala-e90f79a446414541402cf55e9ac664106a5bc355.zip |
Optimization in asSeenFrom.
Eliminated about half the allocations of AsSeenFromMap by examining the
arguments more closely. The impact is not what one might conclude from
that statistic, because those were the cheap asSeenFrom calls - but now
they are cheaper. Also,
- worked in some eager vals rather than lazy ones.
- changed hot-spot comparison to use eq
- simplified annotationArgRewriter
- elimnated separate tracking of capturedPre
Statistics from compiling scala/collection/**.scala:
- 4209382 calls to asSeenFrom
- 1025945 maps created (instantiations of AsSeenFromMap)
- 1525649 maps avoided (these were instantiations before this patch)
Review by most honorable performance-san @gkossakowski .
(Rebase of https://github.com/scala/scala/pull/835)
Diffstat (limited to 'docs/TODO')
0 files changed, 0 insertions, 0 deletions