Apr 2024

1 commit
Avoid needless large memcpys in libpq socket writing
7 Apr 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #434 of 5 reviewers saw the final version

Comparing the applied #43 with c4ab7da606 confirms that the optimization landed without its PqSendBufferSize and required conversions to size_t. David also replaced the internal_flush() macro with an equivalent inline function and adjusted naming/comments, as explained in #45; the commit credits Melih as author.

  • Heikki Linnakangassaw an earlier versiontrailerHeikki identified tiny-write risks in #2 and the unsafe int-pointer cast and abstraction issue in #20, before the size_t correction and final performance refinements.
  • Jelte Fennema-Niosaw the final versiontrailerJelte proposed the adopted buffering rule in #7, reviewed and benchmarked subsequent versions, and supplied the final pre-commit revision in #43.
  • David Rowleysaw the final versiontrailerDavid reviewed types and buffering, benchmarked the patch, supplied #40, and reviewed and committed the final version as reported in #45.
  • Ranier Vilelasaw the final versiontrailerRanier's review in #42 supplied the retained const-pointer and variable-scope improvements, and the subsequent committed optimization retained the reviewed algorithm with light refinements.
  • Andres Freundsaw the final versiontrailerAndres benchmarked the approach in #16, demonstrated gains with improved tests in #41, and reviewed the final submission's type changes in #44.

Credits across 1 commit

Author
Melih Mutlu1
Reviewer
Andres Freund1
David Rowley1
Heikki Linnakangas1
Jelte Fennema-Nio1
Ranier Vilela1
Committer
David Rowley1