Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-2196

Use java.lang.Long.bitCount in BitSetFactory

    Details

    • Type: Improvement
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.0
    • Component/s: Library (Misc)
    • Labels:
      None
    • Environment:

      BitSet bitCount

      Description

      Long.bitCount and Integer.bitCount use bit folding to make this computation fast. In addition to that Hotspot knows these methods and can replace them with native opcode if the CPU supports them (JDK7).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                szeiger Stefan Zeiger
                Reporter:
                matthiasmann Matthias Mann
                TracCC:
                Johannes Rudolph, Simon Ochsenreither
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: