Most performant way to subtract one array from another

后端 未结 5 1037
别跟我提以往
别跟我提以往 2021-02-08 23:32

I have the following code which is the bottleneck in one part of my application. All I do is subtract on Array from another. Both of these arrays have more around 100000 element

5条回答
  •  佛祖请我去吃肉
    2021-02-08 23:58

    Running this on multiple threads, with that big an array will net linear speed-up. It's embarrassingly parallel as they say.

提交回复
热议问题