forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite24d770
committed
Speed up hex_encode with bytewise lookup
Previously, hex_encode looked up each nibble of the inputseparately. We now use a larger lookup table containing the two-byteencoding of every possible input byte, resulting in a 1/3 reductionin encoding time.Reviewed by Tom Lane, Michael Paquier, Nathan Bossart, David RowleyDiscussion:https://postgr.es/m/CANWCAZZvXuJMgqMN4u068Yqa19CEjS31tQKZp_qFFFbgYfaXqQ%40mail.gmail.com1 parent0869ea4 commite24d770
1 file changed
+24
-3
lines changedLines changed: 24 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
149 | 168 |
| |
150 | 169 |
| |
151 | 170 |
| |
| |||
165 | 184 |
| |
166 | 185 |
| |
167 | 186 |
| |
168 |
| - | |
169 |
| - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
170 | 190 |
| |
| 191 | + | |
171 | 192 |
| |
172 | 193 |
| |
173 | 194 |
| |
|
0 commit comments
Comments
(0)