You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intentional. The fields in memoryDbProvider are all pointer or map types themselves, so copying the struct is safe.
From a performance perspective, it's not straightforward when a pointer type outperforms a struct as a receiver. You have to benchmark the specific use case to be sure. But you're trading the higher cost of copying a struct v. a pointer with creating memory pressure via pointers. It probably doesn't matter much one way or the other here.
go-mysql-server/memory/provider.go
Line 33 in 057afd4
go-mysql-server/memory/provider.go
Line 52 in 057afd4
go-mysql-server/memory/provider.go
Line 61 in 057afd4
go-mysql-server/memory/provider.go
Line 78 in 057afd4
go-mysql-server/memory/provider.go
Line 88 in 057afd4
The text was updated successfully, but these errors were encountered: