Am 15.03.2021 um 19:50 schrieb Oleg Kalnichevski:
...
Hi Julian

Pretty much all message parsing routines in core [1] and client are
based on Tokenizer [2]. Those parsers are forward-only and produce near
zero (or fairly little) intermediate garbage.

Id would be nice if parsing code in Structured Field Values re-used
some of the message element parsers or were based on the Tokenizer if
possible.

Oleg
...

Re-using existing message element parsers would not work; structured
fields is a new format and requires draconic error handling.

Also, the parser internally is based on java.nio.CharBuffer, using it in
a forward-only way (if I understand the term correctly), and only
allocates objects in order to build the resulting object model (which
can be quite complex in structured-fields).

It's probably *possible* to rewrite all of this in order to re-use some
existing code, but then it's somewhat unclear how this would make it in
any way better.

Best regards, Julian



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to