Use return value of snprintf instead of calling strlen unnecessarily by alexhenrie · Pull Request #420 · oracle/python-cx_Oracle · GitHub
Skip to content

Use return value of snprintf instead of calling strlen unnecessarily - #420

Merged
anthony-tuininga merged 1 commit into
oracle:masterfrom
alexhenrie:strlen
Apr 18, 2020
Merged

anthony-tuininga merged 1 commit into
oracle:masterfrom
alexhenrie:strlen

Conversation

@alexhenrie

Copy link
Copy Markdown
Contributor

In addition to simplifying the code, this change cuts down the performance overhead of any poorly written code that unnecessarily calls the Connection.version function multiple times.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
@anthony-tuininga

Copy link
Copy Markdown
Member

@anthony-tuininga
anthony-tuininga merged commit ca363be into oracle:master Apr 18, 2020
@alexhenrie
alexhenrie deleted the strlen branch April 18, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants