The current layout preprocessor renders tokens as String to check whether they match layout keywords or { } ;. However, each keyword/symbol token comes with an ID that could be checked faster.
Steps to rewrite layout processor (generator) to use IDs instead of String: