Add support for using wizer to handle running initAll()

Abierto
#6,098 7 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@dgryski ya está trabajando en esto.

Desde el 29/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

The largest slow down for compiling programs frequently comes from running interp on initAll(), espcially if there are global variables with complex initializations, such as regular expression or other expensive function calls. This was first attempted in https://github.com/tinygo-org/tinygo/pull/3655 . The fundamental issue is figuring out what to do with functions goroutines that want to start during init(), and prevent interactions with the outside environment.

While the PR above was a good start, I think it ended up showing the flaws in that attempt. This probably needs a significant reconsideration how to do this. As such, I'm closing that branch and moving this back to an issue to be thought about before diving into code.

Lenguaje dominante
Go
Estrellas
17.8k
Forks
1.1k
Merge medio
1 d 4 h
PR fusionados (30 d)
380

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 tinygo-org/tinygo

Todos los issues de tinygo-org/tinygo

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.