Producing the fastest possible executable

后端 未结 10 2099
滥情空心
滥情空心 2021-02-06 15:55

I have a very large program which I have been compiling under visual studio (v6 then migrated to 2008). I need the executable to run as fast as possible. The program spends most

10条回答
  •  遥遥无期
    2021-02-06 16:45

    You should always address your algorithm and optimise that before relying on compiler optimisations to get you significant improvements in most cases.

    Also you can throw hardware at the problem. Your PC may already have the necessary hardware lying around mostly unused: the GPU! One way of improving performance of some types of computationally expensive processing is to execute it on the GPU. This is hardware specific but NVIDIA provide an API for exactly that: CUDA. Using the GPU is likely to get you far greater improvement than using the CPU.

提交回复
热议问题