lua-users home
lua-l archive

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


On Sun, 2011-06-05 at 15:27 +0200, Florian Weimer wrote:
> > * Fast and low resource intensive.
> 
> The format requires buffering all data before decoding can start.
> This means that decoding arbitrary messages requires unbounded
> storage.

I wonder why the decision to have TYPE specification of the tnetstring
at the end? It could be decoded without buffering if the type was
specified at the beginning of the payload, similar to the bencode used
by BitTorrent.