[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LPEG parsing 'external' strings or streams
- From: Sam Roberts <sroberts@...>
- Date: Mon, 16 Apr 2007 11:16:47 -0700
On Fri, Apr 13, 2007 at 10:17:44AM -0400, Thomas Harning Jr. wrote:
> Just wondering, how feasible would it be for LPEG to be able to parse
> external strings (ex: mem-mapped file) or generic streams.
> LPEG works pretty fast, and allows for plenty of quick optimization...
> the only potential issue is that large data sets must be loaded into
> Lua as it stands now.
Besides large data sets, applying lpeg to streaming data, possibly using
coroutines, would be allow implementing text-based network protocols