Try caching SourcePos objects
Infernio opened this issue · 0 comments
Infernio commented
They're immutable and creating them may be expensive enough that cachhing could be worthwhile - depends on how often the line/column are identical.
Another option could be dropping them entirely in favor of tuples or keeping the ctx.start object around.