Skip to content

Investigate encase compile times #69

@stefnotch

Description

@stefnotch
cargo +nightly rustc -- -Zmacro-stats                                                                                                                                                                                                                               
   Compiling render v0.2.0 (E:\git\school\Math2Model\math3render\render)
Compiling shaders "E:\\git\\school\\Math2Model\\math3render\\target\\debug\\build\\render-0d0be41968b7648b\\out"
Finished shaders "E:\\git\\school\\Math2Model\\math3render\\target\\debug\\build\\render-0d0be41968b7648b\\out" in 154ms
macro-stats ===================================================================================
macro-stats MACRO EXPANSION STATS: render
macro-stats Macro Name                         Uses      Lines  Avg Lines      Bytes  Avg Bytes
macro-stats -----------------------------------------------------------------------------------
macro-stats ::const_panic::__concat_func!       790      7_780        9.8    424_086      536.8
macro-stats #[derive(encase::ShaderType)]        20      5_013      250.7    260_917   13_045.9
macro-stats ::const_panic::coerce_fmt!          700      1_822        2.6     63_445       90.6
macro-stats ::const_panic::__concat_func_setup! 90        758        8.4     27_465      305.2
macro-stats ::encase::private::concat_assert! 90        948       10.5     26_852      298.4

https://nnethercote.github.io/2025/06/26/how-much-code-does-that-proc-macro-generate.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions