improve efficiency on pre-allocation, related to #33