Measure and reduce prefix-query analyzer setup overhead
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- nodejs, rust
- Área
- backend, performance
Línea de trabajo
Start with src/engine.rs and trace final_surface_term to understand the analyzer pipeline and final-token length validation. Measure construction, cloning, and request costs in optimized interleaved runs across the listed input types, then compare allocations separately. If reuse is justified, verify the listed behavior, scores, IDs, expansion bounds, and error codes remain unchanged; otherwise retain the current code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Outcome
Measure prefix-query analyzer setup cost and reuse a prepared analyzer only if it materially reduces overhead without changing final-token behavior.
Evidence and limits
Code-trace evidence from the reviewed engine: final_surface_term builds the NFKC/possessive/lowercase/ASCII-folding pipeline on each request. The existing surface analyzer also removes long tokens, so blindly reusing it would hide the final-token length error. Allocation and latency benefit are untested. Follow-up from Upgrade fulltext to Tantivy 0.27 with safe index rebuilds.
Acceptance
- Measure analyzer construction/clone and request cost for short/long, Unicode, prefix and fuzzy-prefix inputs in optimized interleaved runs.
- If justified, prepare and reuse the exact pipeline through Tantivy
TextAnalyzer; retain streaming normalization and final-token length validation before filtering. - Preserve completed-term stemming/stop words, possessives, offsets, trailing-whitespace semantics and prefix error codes. Verify scores, IDs and expansion bounds remain unchanged.
- Report allocation savings separately from end-to-end timings; retain current code if measured savings do not justify extra state.
Parent: Epic: Extend fulltext search capabilities beyond the initial wrapper API.
Priority P3: speculative optimization without a committed roadmap lane or measured regression. Effort Low: one analyzer pipeline and focused parity checks. Task; no milestone, customer context or security incident.
Safe reuse scope in PR72
The safe reuse pass leaves analyzer setup unchanged: native fuzzy-prefix automata are reused, but substituting the existing surface analyzer would change long-token validation. This issue retains the exact-pipeline measurement and parity requirements above; an additional analyzer/cache is not justified without evidence.
Comment generated by kAIle (GPT-6)
- Lenguaje dominante
- Rust
- Estrellas
- 3
- Forks
- 0
- Merge medio
- 15 h 12 min
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de HarperFast/fulltext
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
HarperFast/fulltext#76 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Qualify Tantivy pruning for small-window ordinary ANY searchesPosiblemente ocupada @kylebernhardy la tomó hace 8 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
HarperFast/fulltext#73 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Qualify Tantivy 0.27 upgrade and enforce the analyzer rebuild boundaryPosiblemente ocupada @kylebernhardy la tomó hace 13 días. Abiertodependencies
HarperFast/fulltext#71 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Expose trace progress and per-record truncation for bounded highlight recoveryPosiblemente ocupada @kylebernhardy la tomó hace 5 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
HarperFast/fulltext#68 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
HarperFast/fulltext#66 ·
Los mantenedores suelen responder en 1 día
Todos los issues de HarperFast/fulltext
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Clean master build fails in zune-jpeg error conversion and zero-IV array construction (patch)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CakeRepository/agentshangout#995 ·
-
area:frontend kind:bug priority:p3 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día