Open mz1979 opened 6 months ago
The problem is in clear()
! If you reinitialize the index variable with a new constructor it works just as fast. Neat finding! Will investigate.
I get the same performance issue if I do not run the clear but redefine my index variable:
Describe the bug
Inserting vectors is extremely slow when using non-contiguous keys (Python SDK).
Steps to reproduce
Run this code and it will test the index insertion for contiguous and non-contiguous keys:
Expected behavior
Performance should match whether contiguous or non-contiguous keys.
USearch version
Build from source branch main-dev
Operating System
Ubuntu 24.04 LTS
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct