Speed up hex_encode with bytewise lookup
John Naylor <john.naylor@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/encode.c | modified | +24 −3 |
Discussion
- [PATCH] Hex-coding optimizations using SVE on ARM. 48 messages · 2025-01-09 → 2025-10-06