diff options
author | Paul Phillips <paulp@improving.org> | 2013-03-13 06:18:53 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-03-13 06:20:00 -0700 |
commit | 6ef63e49f8d762ac02367225ee737ea93f52a738 (patch) | |
tree | 76dd136c18c65f2dbf52b43b7e4758672bb31154 /gitignore.SAMPLE | |
parent | 9c5ea96b1c0fa45037a96e530b6ae71687a292d1 (diff) | |
download | scala-6ef63e49f8d762ac02367225ee737ea93f52a738.tar.gz scala-6ef63e49f8d762ac02367225ee737ea93f52a738.tar.bz2 scala-6ef63e49f8d762ac02367225ee737ea93f52a738.zip |
Fix it-never-happened performance regression.
Diligent reviewer observed that a hot spot was possibly
being made hotter. Reviewer's suggested remedy was a
spectacular bust, but studious observation revealed the news
lash that expensive methods are expensive and we should
avoid calling them if we can.
Put short-circuit test back in front of unapply call.
Now the time spent in unapply is within a few percent.
Diffstat (limited to 'gitignore.SAMPLE')
0 files changed, 0 insertions, 0 deletions