Why is BitSet implemented on long-range



  • There's no reason on the Internet is the choice long as BitSet's keeper. For example, why you can't use short instead. Let us complete the structure. N (NPO 64 ) The elements, then it'll work out that, compared to the short, the overhead will be bigger.



  • I can't imagine what Bitset and java is. But if you do some basic class for the battles and do not do it with the variable size of the storage elements, I'd like to focus on choosing the maximum size of the type of recording processor for this architecture. From the point of view of the processor, the short and long operation takes the same time of implementation. In addition, the operation with data in the operational memory is usually longer than the width of the tyre data. The data are therefore trying to equalize the width of the tyre. Attempts to level short will lead to the creation of unused space, which will result in memory savings to 0

    Intel in modern architecture uses 64 discharge registers and requires the same level of data in memory for rapid operation


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2