Avoid recreating WriteValue at each reception
The WriteValue furnish to the user in the setTargetVariable callback is created at each emission. This mechanism is time consuming. WriteValue contains some static meta data extracted from configuration and a Variant updated from received message. Static metada could be set at initialization and Variant update at each reception avoiding to recreate the all WriteValue object. Change the lifetime of the WriteValue from one reception to the Subscriber process.