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

Fix: Avoid overflow when viewing large files #517

Closed
wants to merge 1 commit into from

Conversation

rschu1ze
Copy link
Contributor

@rschu1ze rschu1ze commented Nov 1, 2024

ClickHouse compiles Usearch

  • with USEARCH_USE_FP16LIB on all platforms
  • with USEARCH_USE_SIMSIMD on x86 and ARM.

I.e. on x86 and ARM, both defines are set. Previously, the code would do
the fp32 <--> fp16 conversion using fp16lib but I think it should prefer
the "homegrown" conversion routines (SimSIMD).

ClickHouse compiles Usearch
- with USEARCH_USE_FP16LIB on all platforms
- with USEARCH_USE_SIMSIMD on x86 and ARM.

I.e. on x86 and ARM, both defines are set. Previously, the code would do
the fp32 <--> fp16 conversion using fp16lib but I think it should prefer
the "homegrown" conversion routines (SimSIMD).
@ashvardanian
Copy link
Contributor

The fp16lib seemingly handles corner cases better. Have you noticed some issues, @rschu1ze?

@rschu1ze
Copy link
Contributor Author

rschu1ze commented Nov 1, 2024

Didn't have issues, no need to merge this PR then. Thanks.

@rschu1ze rschu1ze closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants