In MsgpackParser, both parseMap() and parseArray() make repeated calls to MessageUnpacker.getNextFormat(). This method must ensure buffer space and decode a format tag, which should be done once for performance. The code should call this once and reuse the result instead of calling it multiple times.
In
MsgpackParser, bothparseMap()andparseArray()make repeated calls toMessageUnpacker.getNextFormat(). This method must ensure buffer space and decode a format tag, which should be done once for performance. The code should call this once and reuse the result instead of calling it multiple times.