0xMiden / 0xMiden/compiler

Consider not emitting debug trace-events in release builds

オープン 初心者向け
#1,321 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
debugging
主要言語
Rust
スター
115
フォーク
84
平均マージ
1日 8時間
マージ済み PR(30日)
15

説明

https://github.com/0xMiden/compiler/blob/6195153c50b689648a635390e948496ce324c5f3/codegen/masm/src/events.rs#L19-L24

Debug traces are currently emitted for all build profiles, even `release`. Consider not emitting them in `release` builds.

Context: Migrating debug events to traces (#1320) adds overhead of 2 cycles.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue points to the events.rs file in the codegen/masm module. Examine the conditional compilation attributes or build profile detection in Rust to gate the debug trace events. Check the project's Cargo.toml for profile definitions and see how other features are toggled. The goal is to ensure the events are only emitted in debug/dev builds, not in release.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
compilers, performance
issue の種類
リファクタリング
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
65/100

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

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