performance improvement in sending messages