Use less memory.

Signed-off-by: CyberZHG <cyberzhg@gmail.com>