Java program is getting slower after running for a while

前端 未结 7 1437
天涯浪人
天涯浪人 2021-02-04 03:20

I have a java program that is a typical machine learning algorithm, updating the values for some parameters by some equations:

for (int iter=0; iter<1000; ite         


        
7条回答
  •  旧时难觅i
    2021-02-04 04:06

    I would consider declaring the vars outside the loop so mem allocation is done once and eliminate GC completely.

提交回复
热议问题