ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Update `TRACE_CREATION` to not require calling `TypeName`. #149

Closed ta0kira closed 3 years ago

ta0kira commented 3 years ago

This causes the typename string to be constructed every time a $TraceCreation$ function is called. It would be better to just take a reference to parent->CategoryName() so that the cost is fixed and minimal.

ta0kira commented 3 years ago

The cost can further be reduced by requiring a literal C-string, like is required for the rest of the tracing macros.