It is bottlenecked at Lexer.parce()
in the parse_until_text method...
I just had to do pprint.pformat(obj)
in the parse_until_text method...
(02-10-2020, 07:53 PM)remkonoteboom Wrote: I don't know what Mako is doing to make this so slow. Even wrapping your code in a command line script with the <% ... %> tags runs very very slow (2.5 seconds on my laptop). However, when I broke your single line into about 100 lines, then the execution speed when down to 0.04s. So it seems to be that the problem is handling a huge single line.It is really odd, but works.
I just had to do pprint.pformat(obj)