Parallel compile: schedule from the leaves of the dependency tree

Abierto
#1,253 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Área
build-system

Línea de trabajo

Start at SimulatorInterface._compile_in_dependency_order, identified in the issue, and trace how waiting files, dependency completion, and the library rule are currently handled. The issue describes maintaining counts of uncompiled dependencies and a ready set, then updating direct dependents as compilation finishes. Done means scheduling checks only ready files while preserving the library rule; the payload names no tests to run.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Posted by Claude on behalf of ru551n.

Follow-up from the review of #1235.

Each time a compile finishes, the scheduler in SimulatorInterface._compile_in_dependency_order scans every waiting file to find those whose dependencies are all compiled. That is one pass over the waiting files per compiled file, so the cost grows with the square of the number of files.

It should loop over the leaves of the remaining dependency tree instead. Keep a count of uncompiled dependencies per file and a ready set of the files whose count is zero. When a file finishes, decrement the counts of its direct dependents and move those that reach zero into the ready set. Only the ready set is then checked against the library rule.

Lenguaje dominante
VHDL
Estrellas
850
Forks
305
Merge medio
1 d 11 h
PR fusionados (30 d)
8

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 VUnit/vunit

Todos los issues de VUnit/vunit

Issues similares

Más issues de Build System

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.