Details
-
Type: New Feature
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.2.0
-
Component/s: Message Object Model
-
Labels:None
Description
The reusable message object pool will be used by a decoder to reuse existing message objects instead of recreating messages.
ReusableMessageObjectPool messagePool = new ReusableMessageObjectPool();
FastDecoder decoder = new FastDecoder(context, in);
decoder.setMessageFactory(messageFactory);
Message message = decoder.readMessage();
process(message);
messagePool.reuse(message);
This should decrease Unnecessary Object Creation and dramatically increase decoder performance.