Migrated issue, originally created by Anonymous
there are too many context.write() in compiled module, it stands for context._buffer_stack[-1].data.append or context._buffer_stack[-1].write, causes a lot of overhead.
make a shortcut for i can reduce the overhead and speed up mako a lot.
Attachments: speedup_2.patch | speedup.patch
Migrated issue, originally created by Anonymous
there are too many context.write() in compiled module, it stands for context._buffer_stack[-1].data.append or context._buffer_stack[-1].write, causes a lot of overhead.
make a shortcut for i can reduce the overhead and speed up mako a lot.
Attachments: speedup_2.patch | speedup.patch