Reduce repeated Need-graph lookups when rereading report templates
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
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- performance
Línea de trabajo
Profile _reread_post_template_pages and _LinkedNeeds._resolve_backlinks in src/extensions/score_sphinx_needs_templates/__init__.py. Read how _get_available_needs() combines the live graph with the saved Needs and how backlink resolution includes outgoing links; compare that behavior with the existing report output fixtures, including mounted cross-document reports. Done means the reread pass is faster while preserving live updates, backlink order, version-qualified IDs and duplicate handling.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
Rereading seven report pages after Sphinx merges the parallel reader environments took about 14 seconds in Reference Integration. The report templates do this second pass so their tables can see Needs and links from other documents.
Technical approach
Profile _reread_post_template_pages and _LinkedNeeds._resolve_backlinks in src/extensions/score_sphinx_needs_templates/__init__.py. The current helper can scan all Needs for each backlink lookup and copy the graph to overlay temporarily removed Needs. Test a reverse-link index for the reread pass and an overlay that avoids copying the full mapping. Preserve live updates during document replacement, backlink order, version-qualified IDs and duplicate handling.
Measurement and reproduction dump
The env-updated hook _reread_post_template_pages took 13.905 s with 36,806 Needs in a local build of Reference Integration #501 using docs-as-code v9.0.0. The seven pages use templates marked score: render-after-needs-collection. The marked templates are module_verification_report, platform_verification_report and tool_qualification_report.
_get_available_needs() combines the current graph with the snapshot of Needs cleared for rereading. _resolve_backlinks() merges pre-existing backlinks with outgoing links from the live collection because some links have been injected and the upstream backlink index can still be incomplete. Any index needs to reflect that same view, including changes from earlier pages in the reread.
In the same phase trace, test import took 16.146 s, source/test link injection 5.680 s and bundle metadata 0.070 s. The 13.905 s number measures the whole reread callback. The proposed lookup changes have not been benchmarked. Compare with instrumented handler timings and existing report output fixtures, including mounted cross-document reports.
Related performance measurements and CI context are in https://github.com/eclipse-score/docs-as-code/issues/1075.
- Lenguaje dominante
- Python
- Estrellas
- 11
- Forks
- 39
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 65
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 eclipse-score/docs-as-code
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
eclipse-score/docs-as-code#1031 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
waiting_for_author
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-score/docs-as-code#1029 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
intentionally-limited
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
eclipse-score/docs-as-code#1019 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
eclipse-score/docs-as-code#920 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Add project name to headline ...Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
eclipse-score/docs-as-code#613 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-score/docs-as-code
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choicePosiblemente ocupada @beartester34 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelscope/evalscope#2330 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Distribution plot crashes when a numeric feature is constant in the train or test setPosiblemente ocupada @adembilge la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MAIF/shapash#847 · 1 comentario ·
Los mantenedores suelen responder en 10 días