-
Notifications
You must be signed in to change notification settings - Fork 108
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
Insertion to a BindingSeq
should not take O(log n) time
#23
Comments
Aren't Vectors effectively constant for inserts/deletion? Perhaps I don't understand your use case. |
I meant
|
Ah, I see. I'd be careful using a finger tree, though. Despite having a great theoretical performance, actual implementations are pretty unsatisfactory (at least on the JVM). If you're considering using them over the default red-black trees, I'd recommend benchmarking. I hope to read the source this weekend, so perhaps then I can be of more assistance |
BindingSeq
should not take O(log n) time
@kantianethics I agree. I changed the title of this issue in order to fit solutions other than finger tree. |
BindingSeq
should not take O(log n) timeBindingSeq
should not take O(log n) time
I created an issue at https://issues.scala-lang.org/browse/SI-10001 |
Current implementation use
Vector
, which consumes linear time when an element is inserted or removed in the middle of aBindingSeq
.While, finger tree could be
O(1)
orO(log n)
.The text was updated successfully, but these errors were encountered: