tursodatabase / libsql-client-go

Go client API for libSQL
MIT License
180 stars 24 forks source link

Optimize arguments handling #127

Closed haaawk closed 1 month ago

haaawk commented 1 month ago

Remove memory/cpu overhead of handling arguments when they are empty. This is important in case of user loading a dump of their database. In such a case, there are no arguments at all and the number of statements is usually big.

Refs https://github.com/tursodatabase/turso-cli/issues/735

haaawk commented 1 month ago

Ok, let's merge this

Thanks. It seems that I will have to change this significantly for streaming so I will try to improve the situation then.