Will multi threading provide any performance boost?

前端 未结 19 820
说谎
说谎 2021-02-05 13:49

I am new to programming in general so please keep that in mind when you answer my question.

I have a program that takes a large 3D array (1 billion elements) and sums up

相关标签:
19条回答
  • 2021-02-05 14:20

    It's a matrix problem?

    Both Intel and AMD have super-optimized libraries for all sorts of heavy math problems. These libraries use threading, arrange the data for best cache use, cache prefetch, SSE vector instructions. Everything.

    I believe you have to pay for the libraries, but they are well worth the money.

    0 讨论(0)
提交回复
热议问题