风雪夜归人
Results
2
comments of
风雪夜归人
有两个问题反馈下: * 需要补充下 UT * 当前只处理了单版本的情况,是否方便把多版本也支持
我做了 benchmark,以下是示例代码,Marshal 是你的原始函数,Marshal2 是我直接 for 循环,Marshal3 是我改成指针接收者调用函数,Marshal3 是最快的。 ``` package tablestore import ( "fmt" "sync" "testing" ) func marshal(pks []*PrimaryKeyColumn, cols []*AttributeColumn) (primaryKeys map[string]interface{}, rows map[string]interface{}) { primaryKeys = make(map[string]interface{})...