Add support for using wizer to handle running initAll()

オープン
#6,098 コメント 7 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dgryski がすでに取り組んでいます。

2026年10月29日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
Go
スター
17.8k
フォーク
1.1k
平均マージ
1日 4時間
マージ済み PR(30日)
380

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tinygo-org/tinygo のほかの issue

tinygo-org/tinygo の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。