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

Abierto
#875 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@egolearner ya está trabajando en esto.

Desde el 4/11/2026.

  • #876 de @chenrui333 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
C++
Estrellas
16.3k
Forks
1k
Merge medio
2 d 10 h
PR fusionados (30 d)
32

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de alibaba/zvec

Todos los issues de alibaba/zvec

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.