Will multi threading provide any performance boost?

前端 未结 19 848
说谎
说谎 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.

提交回复
热议问题