Results 121 comments of Petr Bodnár

OK, so I think we can safely close this one now. :)

@Lucas-C, thanks for the efforts. It looks like the new code needs to cope with order/nesting of the parsed tokens though, so that `DefinitionTerm` doesn't automatically get parsed instead of...

> > @Lucas-C, thanks for the efforts. It looks like the new code needs to cope with order/nesting of the parsed tokens though, so that `DefinitionTerm` doesn't automatically get parsed...

> > Won't be that easy as just reordering the parsed token classes, it seems. Because now you've got the DefinitionList tests broken for a change: > > Woops, I...

> ## Benchmark > > On my computer, on the `master` branch: > > ``` > $ python test/benchmark.py mistletoe > Test document: test/samples/syntax.md > Test iterations: 1000 > Running...

> I just made another test: > > ... > > So yeah, there may be a slight performance penalty (10% based on that test). > > But I'm a...

> > Further optimization strategies which come to my mind: > > > > 1. Cache the results of "args count findings" in a dictionary - are there some technical...

@Lucas-C, thank you, I guess that's all for now regarding the original idea of having the `lines` argument _optional_. Do you think you would find the time to prepare and...

> > @Lucas-C, thank you, I guess that's all for now regarding the original idea of having the `lines` argument _optional_. Do you think you would find the time to...

Hi @Lucas-C, you are right, the current mistletoe API doesn't seem to be prepared for this use case when we need to _peek at a line ahead the current one_....