Support an opt-in portable x86 FastPFOR build without SSE4.1

Đang mở
#875 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@egolearner đang làm issue này rồi.

Từ ngày 4/11/2026.

  • #876 của @chenrui333 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

The FastPFOR integration unconditionally adds -msse4.1 for non-ARM, non-MSVC builds:
https://github.com/alibaba/zvec/blob/8397071d815cd842be2068339e00a94e69f069d1/thirdparty/FastPFOR/CMakeLists.txt#L37-L40

This prevents a baseline-compatible x86 build for CPUs without SSE4.1. Homebrew's x86_64 bottle baseline is Core 2, so this is a blocker while packaging the native zvec-grep 0.3.0 release:
https://github.com/Homebrew/homebrew-core/pull/323135

The existing ARM/RISC-V integration already uses SIMDe to provide the same SSE intrinsics. An opt-in portable FastPFOR build could reuse that path on x86, omit the unconditional SSE4.1 flag, and preserve the compression format and public API. Default native builds would remain unchanged.

I am preparing a focused change and a standalone encode/decode regression that targets Core 2 with SSE4.1 disabled. This report is based on the current CMake/header configuration; I have not observed a runtime crash on physical Core 2 hardware.

Ngôn ngữ chính
C++
Star
16.3k
Fork
1k
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
32

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alibaba/zvec

Tất cả issue của alibaba/zvec

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.