Timeline for Why was my question about improving the performance of a code closed as lacking focus?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 4, 2023 at 17:41 | comment | added | Ali_Sh |
As my question needs Numba, Code_Review is not a good choice, because it has, so far, less than 30 answers with this tag, many not good enough IMO, and many Numba related professionals are not active there (just active on SO), so SO is much more preferable than CR. Another thing is that my question is just a small part of my main code, short enough (section of code that appears to be under-performing), IMO it fits the SO. I’ve added my system setup to show what is intended, too. My code was around np.argsort so it was not a general question, and it needs to well-handle that. Closed again.
|
|
Jan 4, 2023 at 17:38 | comment | added | Ali_Sh |
even can be better than mine and acceptable (and I need that). I think an answer there, even with np.zeros instead np.empty if get better result, led to start the competition and encourage others to participate to beat that answer, if the goal of people here be to help and not to punish askers for any deficiency in his/her question, as I believe it is. if not, I must accept that. Please let me know how to request for such performance questions to get the best possible answer to avoid others blaming my question.
|
|
Jan 4, 2023 at 17:38 | comment | added | Ali_Sh |
I did not catch why it was open-ended discussion, I’ve wrote that after explanations about float64 or float128 , perhaps badly written? In the other hand, I didn't have any idea how much it could speed up. For example, if the code is consuming 12 hours now (11 hours is benched for the example), speeding up the code as much as possible is expected, but if I write expected time e.g., below 1 hours in the post (which is good enough), answerers will not put their answer if they think cannot reach it (although their code will be much performant but not gaining that, like 2 hours) (cont,)
|
|
Jan 4, 2023 at 17:36 | comment | added | Ali_Sh |
@KarlKnechtel In the post I have mentioned float64 for dtype is enough, by more precise I mean like float128 but if it doesn’t affect, adversely, the performance a lot. So, I said/meant performance with float64 is the main concern and competition will be based on that. I wrote a code that needs to be improved, so just using np.zeros instead np.empty or … in the code to improve it even a little, will be accepted if not any more performant answer be written (I’ve removed The performance is the main objective. based on this answer).
|
|
Jan 4, 2023 at 0:42 | comment | added | Karl Knechtel | "I have written The performance is the main objective. to say that more precision is not the first priority." That needs to be quantified. Otherwise I can write code that returns an array of the appropriate shape filled with zeros, and consider the task complete. | |
Jan 2, 2023 at 3:58 | comment | added | Ali_Sh | before anything else, I appreciate for you participation for help. Another matter is that I have mentioned the expected methods (with NumPy or Numba) for use in my new post. And also mentioned that this code will be called many times, which will be take more than12 hours based on the problem sizes (I did not mentioned how long it could take). | |
Jan 2, 2023 at 3:42 | comment | added | Ali_Sh | I have written The performance is the main objective. to say that more precision is not the first priority. the first is performance with considering the specified limits i.e. ranges and float type and … . | |
Jan 2, 2023 at 3:34 | comment | added | Ali_Sh | stackoverflow.com/questions/74977526/… | |
Jan 2, 2023 at 3:34 | comment | added | Ali_Sh | I added the updated question into this issue, the link was attached incorrectly, I added it correctly now. please see that. In the new question, I have removed it. | |
Jan 2, 2023 at 3:32 | history | answered | MachavityMod | CC BY-SA 4.0 |