improve compaction performance. close leo-project/leofs#49