optimized code for create/modify content methods.

Signed-off-by: TomWu <phperwuhan@gmail.com>