dtolnay / dtolnay/watt

Consider printing warning in non-JIT mode if any single invocation takes >100ms

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Rust
Stars
1.5k
Forks
31
PR merge metrics
No merged PRs in 30d

Description

In the non-JIT runtime let's time how long each macro call takes and print a message if any one takes too long, pointing to the JIT installation instructions and explaining that it would likely improve your compile time.

We'll want the warning to somehow appear only once per compilation if possible. Also we'll want some way to silence it in case the user can't install JIT for some reason.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the non-JIT runtime path that invokes macros and the existing JIT installation guidance; done means reporting invocations over 100ms once per compilation, with a documented way to silence the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.