Skip to content

compile-time optimization #219

@Trass3r

Description

@Trass3r

The code is quite heavy on compile-time and could use some optimizations (e.g. every enum_cast takes 1s to instantiate in my test).
clang got improved recently to cover constexpr evaluations in time traces which will come in handy: https://reviews.llvm.org/D136022.

Half of the parsing time alone is spent on constexpr_switch for example, and is_flags_enum is very heavy to instantiate because it calls values.
Here's the test-cpp17 time trace generated with -ftime-trace -ftime-trace-granularity=100, can be viewed with https://ui.perfetto.dev.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions