Skip to content

fix a performance bug when bring result back

Xuehan Ke requested to merge kexh/wukong:fix_performance into master

perviously it will reverse the precise size of vector every time when it do insert command. And this may cause the vector copying the data to new address every time. if result is large, the performance is very poor.

we do not need to reverse it manually. In the insert command, before doing insert data, it will automatically double the size if capacity is not enough, and avoid copying data every time.

Merge request reports