diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-08 23:20:59 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-09 06:33:08 -0700 |
commit | 7bddd73f6e18bde931026abf5fe2526b747727ad (patch) | |
tree | c356907fc8a2232bda914cd4d7c9f445d3bcc9bb /pull-binary-libs.sh | |
parent | 174a75f78df9436884100768eff7ec938315280d (diff) | |
download | scala-7bddd73f6e18bde931026abf5fe2526b747727ad.tar.gz scala-7bddd73f6e18bde931026abf5fe2526b747727ad.tar.bz2 scala-7bddd73f6e18bde931026abf5fe2526b747727ad.zip |
Make specialize check cheaper and consistent.
Profiler said checking hasAnnotation thousands of times
is expensive. I always wondered why some things used the
SPECIALIZED flag and others looked for the annotation.
No reason emerges which is apparent from the tests. So:
- mark an annotated symbol specialized at a convenient time
- always look for the flag
- create Symbol#isSpecialized to be consistent with all others
Diffstat (limited to 'pull-binary-libs.sh')
0 files changed, 0 insertions, 0 deletions