Skip to content

Consider having trace::on as compile-time parameter #251

@andreasbuhr

Description

@andreasbuhr

Because the trace-mode is a runtime parameter in bp::parse, but it is a compile-time parameter in most templates, the whole parser always exists twice in the generated binary. One time with trace mode enabled, one time with trace mode disabled. When tracing is not used, the generated binary is at least twice as big as necessary. The compilation time has parts which are worse-than-linear in the number of available parse_rule() definitions, so compile time is at least twice as long as necessary.

If there was a define or a template parameter to globally disable the trace mode, I'd appreciate that very much.

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