Skip to content
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

perf: PQ performance #3149

Open
3 of 5 tasks
BubbleCal opened this issue Nov 21, 2024 · 2 comments
Open
3 of 5 tasks

perf: PQ performance #3149

BubbleCal opened this issue Nov 21, 2024 · 2 comments
Assignees

Comments

@BubbleCal
Copy link
Contributor

BubbleCal commented Nov 21, 2024

Now we are optimizing the PQ performance, here to track all potential bottlenecks:

  • 256bit/512bit SIMD for 4bit PQ
  • transforming: now we handle 4bit PQ case while transforming, which requires to collect the intermediate results
  • cache locality: the distance calculating can be optimized by better access pattern to distance table
  • constructing distance table: now it's 4x slower than computing distances
  • find partitions: significant when nprobes is small
@wjones127
Copy link
Contributor

wjones127 commented Nov 21, 2024

@BubbleCal
Copy link
Contributor Author

BubbleCal commented Nov 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants