added some profiling on message rendering