rocketlaunchr / dbq

Zero boilerplate database operations for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check performance difference

pjebs opened this issue · comments

commented

Can you benchmark and check the performance difference between
the speed-up branch (which will definitely be merged to master)
and return-slice-of-struct branch (which will probably go to v2).

The difference is that when you provide a ConcreteStruct, the speed-up branch returns []interface{} containing *struct whilst return-slice-of-struct returns []*struct

return-slice-of-struct uses fore reflect pkg and is not backward compatible.