improve asynchonous publishing performance (fix #373)