improve asynchonous publishing performance

@esteve @tfoote @wjwwood Please review.