Skip to content

pretty.Sprint is CPU intensive, print only once#13

Open
diwu1989 wants to merge 1 commit intoExpansiveWorlds:masterfrom
diwu1989:master
Open

pretty.Sprint is CPU intensive, print only once#13
diwu1989 wants to merge 1 commit intoExpansiveWorlds:masterfrom
diwu1989:master

Conversation

@diwu1989
Copy link
Copy Markdown

Since pretty.Sprint is pretty heavy, we should only be doing it once instead of twice.
The args don't mutate during the query, so we can generate the args string once and use it for tracing and for logging.

@luna-duclos
Copy link
Copy Markdown

Hey there, this repo is not actively maintained, would you be willing to submit this PR to my fork ? https://github.com/luna-duclos/instrumentedsql

slagiewka added a commit to slagiewka/instrumentedsql that referenced this pull request Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants