nakagami / firebirdsql

Firebird RDBMS sql driver for Go (golang)
MIT License
227 stars 60 forks source link

Remove unnecessary fmt.Sprintf #63

Closed bat22 closed 6 years ago

bat22 commented 6 years ago

In wireprotocal.go lines like this: debugPrint(p, fmt.Sprintf("\trecvPackets():%v:%v", buf, err)) have overhead for fmt.Sprintf call even debugPrint body commented.

bat22 commented 6 years ago

This change increases rows.Scan() perfomance up to 40%

nakagami commented 6 years ago

thanks!