forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0d1adae
committed
Micro-optimize datum_to_json_internal() some more.
Commitdc3f9bc mainly targeted the JSONTYPE_NUMERIC code path.This commit applies similar optimizations (e.g., removingunnecessary runtime calls to strlen() and palloc()) to nearby code.Reviewed-by: Tom LaneDiscussion:https://postgr.es/m/20231208203708.GA4126315%40nathanxps131 parent4908c58 commit0d1adae
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
191 |
| - | |
| 191 | + | |
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 |
| - | |
214 | 213 |
| |
215 |
| - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
216 | 217 |
| |
217 |
| - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
218 | 221 |
| |
219 | 222 |
| |
220 | 223 |
| |
| |||
277 | 280 |
| |
278 | 281 |
| |
279 | 282 |
| |
280 |
| - | |
281 |
| - | |
282 |
| - | |
| 283 | + | |
| 284 | + | |
283 | 285 |
| |
284 | 286 |
| |
285 | 287 |
| |
|
0 commit comments
Comments
(0)