attaswift / BTree

Fast sorted collections for Swift using in-memory B-trees

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when inserting Element in List

AymanRadid opened this issue · comments

Using the following function I am trying to benchmark the performance of this List

capture

I get the following error on line 183 BTreeNode
EXC_BAD_INSTRUCTION fatal error: Array index out of range.

The index where this happens is 682.

Very nice catch, thank you!
It was caused by a regression during refactoring that wasn't caught by the test suite.