diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-28 17:47:21 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-28 17:47:21 +0000 |
commit | 42fb66a2cbcad4fff0634dc935f135494f04be93 (patch) | |
tree | c1aad8ed0ae96f968a34164d481d524a4fbcf184 /test | |
parent | c23c21853a76adfc8694ce752853a5be5d5c8cf3 (diff) | |
download | scala-42fb66a2cbcad4fff0634dc935f135494f04be93.tar.gz scala-42fb66a2cbcad4fff0634dc935f135494f04be93.tar.bz2 scala-42fb66a2cbcad4fff0634dc935f135494f04be93.zip |
Continuing to press on RefChecks, discovered wh...
Continuing to press on RefChecks, discovered what seemed a pretty
spectacular performance bug, at least at first. I was disappointed to
see that the time gain didn't measure up. Still, nanos are nanos.
According to YourKit, millis spent in List#foreach on a compilation of
src/library broke down like this:
| +---LinearSeqOptimized$class.foreach | 173,123 100 % |
| +---RefChecks$RefCheckTransformer.register$1 | 117,658 68 % |
I think that is largely a profiler lie, but there is enough truth. After
adjusting to prune before recursing, the number of invocations of method
register in validateBaseTypes drops by 98%.
Review by odersky.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions