Speed up lpad() and rpad()

Log in to edit
ID 7340
Title Speed up lpad() and rpad()
CI (CFBot) Summary
Stats (from CFBot) Patch version: v5, Patch count: 3, First patch: +27−33, All patches: +218−44
Tags Performance
Created 2026-09-23 17:10:55
Last modified 2026-09-23 17:10:58 (1 month ago)
Latest email 2026-10-03 05:27:34 (1 month ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
Target version 20
Authors Sehrope Sarkuni (sehrope)
Reviewers Nathan Bossart (bossartn) Log in to become reviewer
Committer Nathan Bossart (bossartn)
Links
Emails
Speed up lpad() and rpad() for one-byte padding strings
First at 2026-09-23 14:10:09 by Sehrope Sarkuni <sehrope at jackdb.com>
Latest at 2026-10-03 05:27:34 by shihao zhong <zhong950419 at gmail.com>
Latest attachment (nocfbot-pad-v5-review.txt) at 2026-09-25 01:24:54 from Manu <manuelreyesbravo at gmail.com>
    Attachment (nocfbot-pad-v5-review.txt) at 2026-09-25 01:24:54 from Manu <manuelreyesbravo at gmail.com> (Patch: No)
    Attachment (v5-0001-Factor-the-padding-loop-out-of-lpad-and-rpad.patch) at 2026-09-24 23:54:21 from Sehrope Sarkuni <sehrope at jackdb.com> (Patch: No)
    Attachment (v4-0001-Factor-the-padding-loop-out-of-lpad-and-rpad.patch) at 2026-09-23 22:51:14 from Sehrope Sarkuni <sehrope at jackdb.com> (Patch: No)
    Attachment (v2-0001-Copy-whole-repetitions-of-the-pad-string-at-once-.patch) at 2026-09-23 17:16:45 from Sehrope Sarkuni <sehrope at jackdb.com> (Patch: No)
    Attachment (v2-0001-Factor-the-padding-loop-out-of-lpad-and-rpad.patch) at 2026-09-23 17:09:08 from Nathan Bossart <nathandbossart at gmail.com> (Patch: No)
    Attachment (0001-Use-memset-for-one-byte-padding-in-lpad-and-rpad.patch) at 2026-09-23 14:10:09 from Sehrope Sarkuni <sehrope at jackdb.com> (Patch: No)
History
When Who What
2026-09-23 17:10:58 Nathan Bossart (bossartn) Added bossartn as committer
2026-09-23 17:10:57 Nathan Bossart (bossartn) Added bossartn as reviewer
2026-09-23 17:10:55 Nathan Bossart (bossartn) Attached mail thread CAH7T-apj+pFg9bRkXVGfGejS2Uu4WzdMd7KoLKTW11mdsrt1Ew@mail.gmail.com
2026-09-23 17:10:55 Nathan Bossart (bossartn) Created patch record
Log in to edit