-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
kind: refactorMaking existing function faster or nicerMaking existing function faster or nicernagaShader TranslatorShader Translator
Description
It looks like Error is 80 bytes on x86-64 which will make the Result<> returned from a lot of the lexing functions pretty big. A prototype of this reduced the size of naga::front::wgsl::Parser::parse from 24.2KiB to 21.9KiB. Unfortunately, because of rust-lang/rust#46607 the savings is not as much as it could be because every call to Box::new() ends up with an inlined test for a null return from _rust_alloc.
Metadata
Metadata
Assignees
Labels
kind: refactorMaking existing function faster or nicerMaking existing function faster or nicernagaShader TranslatorShader Translator