Optimising Java objects for CPU cache line efficiency

后端 未结 2 2027
清酒与你
清酒与你 2021-02-07 12:48

I\'m writing a library where:

  • It will need to run on a wide range of different platforms / Java implementations (the common case is likely to be O
2条回答
  •  囚心锁ツ
    2021-02-07 12:52

    You may require information about the various caches of your CPU, you can access it from Java using Cachesize (currently supporting Intel CPUs). This can help to develop cache-aware algorithms.

    Disclaimer : author of the lib.

提交回复
热议问题