Is there any good way to optimize the speed of this python code?
问题 I have a following piece of code, which basically evaluates some numerical expression, and use it to integrate over certain range of values. The current piece of code runs within about 8.6 s , but I am just using mock values, and my actual array is much larger. Especially, my actual size of freq_c= (3800, 101) and size of number_bin = (3800, 100) , which makes the following code really inefficient, as the total execution time will be close to 9 minutes for the actual array. One part of the