- Notifications
You must be signed in to change notification settings - Fork5
Commit21eb6ae
committed
Shave a few cycles in compare_pathkeys() by checking for pointer-identical
input lists before we grovel through the lists. This doesn't save much,but testing shows that the case of both inputs NIL is common enough thatit saves something. And this is used enough to be a hotspot.1 parent640796f commit21eb6ae
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
332 | 332 |
| |
333 | 333 |
| |
334 | 334 |
| |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
335 | 343 |
| |
336 | 344 |
| |
337 | 345 |
| |
| |||
354 | 362 |
| |
355 | 363 |
| |
356 | 364 |
| |
357 |
| - | |
358 |
| - | |
359 | 365 |
| |
360 | 366 |
| |
361 |
| - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
362 | 370 |
| |
363 | 371 |
| |
364 | 372 |
| |
|
0 commit comments
Comments
(0)