support manual timestamp && optimize memory usage