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
Migrate deque from denque to Js-sdsl Deque #209
Comments
|
Thanks for indicating that, but in our specific use-case, our benchmark performs better using denque: most of our use is push and shift and even if js-sdsl is faster in other things, denque performs better in this use-case resulting in |
|
Thanks for your reply! But I think this test cannot reflect the real performance difference between the two structures. The reasons as follow:
In summary, I think it is unreasonable to think that the performance of js-sdsl is worse then denque. |
|
I didn't know about queue beeing slower than deque, i would have think the opposite. In fact, I've done this benchmark because i've first made the change to js-sdsl in development, and run the db benchmarks, resulting in worst performance. After analysis, this was due to this scenario "push and shift" that is slower in js-sdsl. I'll have to redo my bench with deque in place of Queue :) |
|
Sorry, I found the reason for its slowness. This was caused by an PR which want to fixes elements not being empty. I'll fix it later. |
|
The version 4.3.0 has been published. You can try it again. @rusher |
|
I've tryed again, and even if 4.3.0 perform better, denque still fit better in connector use (in fact implementation fit exactly to use, it will be hard to replace). |
Hey! I'm the developer of Js-sdsl. Official website: https://js-sdsl.github.io/.
Now, we published the version 4.1.4.
I see you are using denque.
In benchmark, we have confirmed that Js-sdsl is several times faster than
denqueand nearly equal toArray.pushin the case of push elements.We would like to invite you to migrate deque related functions to Js-sdsl v4.1.4 and I am willing to submit a pull request for this change.
Looking forward to your reply! :D
The text was updated successfully, but these errors were encountered: