Labels are 64bit but JS bindings were limited to 32bit
An important change for large indexes, and precursor to supporting vector identifiers where index is insufficient. Faiss already natively uses 64bit labels, this PR just prevents the conversion loss.
Let me know if you prefer these small PR's or one bigger one. Have quite a few improvements planned.
Let me know if you prefer these small PR's or one bigger one. Have quite a few improvements planned.
Thank you very much for your series of improvements. Small PR's are preferred
@asilvas Thank you for this pr, but considering the following points, I would like to put this pr aside. Maybe we can provide another API to deal with 64bit issues in the future.
- This modification will brings break changes and cause great trouble to downstream users.
- Number and BigInt are not interoperable. Generally, users are more familiar with number, and using number will have better compatibility with other libraries.
- Generally speaking, if a user uses javascript, I do not expect him to have sufficient requirements for performance and data volume.
If you're not interested in serious improvements you can close my PR's and I'll move to fork.