Skip to main content

configuration_from_environment_and

Function configuration_from_environment_and 

Source
pub fn configuration_from_environment_and(
    environment: &dyn MacroFacts,
    use_in_force_bodies: bool,
    parsed: &mut ParsedDefinitions,
) -> Configuration
Expand description

configuration_from_environment_with, with the run’s definition cache.

The difference is the whole 12.2 s measured on the 255-file corpus: without a shared cache, every file re-reads every definition it has in force — 2.5 million lex-and-parse calls for 42 939 distinct definitions — and then copies the result into its own table. A caller that cooks more than one file (a census, an editor’s session, an index build) passes the same cache each time.