lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Alek,

> I am just curious: If LPegLJ was fast enough, would it be sufficient for your given use case, with its current functionality?

I think so, as long as it runs on a "regular" LuaJIT. Even with
LPegLJ, I'm not completely out of the woods yet as I still need to add
handling for incremental parsing that may be happening in the middle
of an already parsed fragment instead of being at the end. In this
case having streaming API is not enough.

I like being able to yield from any handler (when using LPegLJ), which
gives me full control over parsing timing.

Paul.

On Mon, Sep 1, 2014 at 11:42 AM, Alek Paunov <alex@declera.com> wrote:
> Hi Paul,
>
> On 01.09.2014 00:11, Paul K wrote:
> ...
>
>
>> I'm familiar with LPegLJ and its streaming support, but have been
>> wondering if it's possible at all to achieve with LPEG or if it can be
>> extended to handle that.
>
>
> ...
>
>
>> I like LPegLJ API, but it's still a bit too slow for my test
>> cases (3x-10x times slower than LPEG using the latest LPegLJ/LuaJIT).
>>
>
> I am just curious: If LPegLJ was fast enough, would it be sufficient for
> your given use case, with its current functionality?
>
> Kind regards,
> Alek
>
>