We were using emit_by_name which implies looking up for the signal name, while the generated code can easily remember the signal ID and use it instead, allowing direct access to the signal emission.