aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_oper.c
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2025-01-15 13:28:26 +0700
committerJohn Naylor <john.naylor@postgresql.org>2025-01-17 16:29:25 +0700
commite24d77080b365265f3c854f64e71518622883678 (patch)
tree87872eb12aa444393037b26776b0821393e0d399 /src/backend/parser/parse_oper.c
parent0869ea43e9c2257819e5c8719e28fe3b5c527911 (diff)
downloadpostgresql-e24d77080b365265f3c854f64e71518622883678.tar.gz
postgresql-e24d77080b365265f3c854f64e71518622883678.zip
Speed up hex_encode with bytewise lookup
Previously, hex_encode looked up each nibble of the input separately. We now use a larger lookup table containing the two-byte encoding of every possible input byte, resulting in a 1/3 reduction in encoding time. Reviewed by Tom Lane, Michael Paquier, Nathan Bossart, David Rowley Discussion: https://postgr.es/m/CANWCAZZvXuJMgqMN4u068Yqa19CEjS31tQKZp_qFFFbgYfaXqQ%40mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_oper.c')
0 files changed, 0 insertions, 0 deletions