-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stress is slow #90
Comments
Stress will generate by default 10 test cases and run you solution against each of them, if your solution is taking time running What do you mean by |
The code shouldn't be slow. I was generating test cases of size ~10 and the time complexity is NlogN and N^2. I'll update with a more trivial example |
Even I have experienced this. And the culprit (according to me) is gen.py. It takes highest time to generate input testcase |
@archit120 I'll track the issue for saving on stress at #94 |
I explore this issue together with @dgc9715, and we believe the culprit might be One possible improvement is launching one binary that handles the stressing and communicate with the extension about the progress, but I prefer not to pursue this idea for now since it is much more complex, and it is not clear if it will solve the problem at all. I'm closing this issue for now, but it would still be useful if you provide the source codes of your setup, to check if there is anything else happening. If you believe, this issue is not related to |
Try using https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options instead of spawnsync. How much time does it take?. You can also check this:https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback. |
Just tested both of this functions, and couldn't find any noticeable difference on two different machines (one with Ubuntu and other with OSX) |
I'm using the version from the store so I don't know if this is fixed in master. Running on Windows
The text was updated successfully, but these errors were encountered: