Hi guys,

I had some time last evening and during the following insomnia to do
some tests and bechnmark using the reverse order encoding of ASN.1 PDU
(the PDU is encoded starting from the end, which allows the encoding of
Length when this length is known, which saves the computeLength() call
and the storage of intermediary values, leading to less GC)

Last week-end, I played with a Kerberos PDU (Ticket), and today I used
the AddRequest message.

It's more than 2 times faster.

I confirmed the result with JMH, which shown a 2x faster encoding
(20,529,987 encoding/s vs 9,393,737 encoding/s, on a smallest PDU, the
VLV request control)

Actually, modifying the code to adapt the various messages is not that
painful, it's more or less a matter of 1h per message, tests included.

I'll keep going for the moment, and I'll see if we can go any further
with the Decorator removal later on.

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org

Reply via email to