forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe2e206
committed
Inline the fast path of plpgsql's exec_cast_value().
In the common case where this function isn't actually asked to performany type conversion, there's nothing it has to do beyond comparing thearguments. Arrange for that part to be inlined into callers, with theslower path remaining out-of-line. This seems to be good for severalpercent speedup on simple cases, with only minimal code bloat.Amit KhandekarDiscussion:https://postgr.es/m/CAJ3gD9eBNrmUD7WBBLG8ohaZ485H9y+4eihQTgr+K8Lhka3vcQ@mail.gmail.com1 parent90b2d8c commitfe2e206
1 file changed
+43
-22
lines changedLines changed: 43 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
424 | 428 |
| |
425 | 429 |
| |
426 | 430 |
| |
| |||
7825 | 7829 |
| |
7826 | 7830 |
| |
7827 | 7831 |
| |
7828 |
| - | |
| 7832 | + | |
7829 | 7833 |
| |
7830 | 7834 |
| |
7831 | 7835 |
| |
| |||
7837 | 7841 |
| |
7838 | 7842 |
| |
7839 | 7843 |
| |
7840 |
| - | |
| 7844 | + | |
| 7845 | + | |
| 7846 | + | |
| 7847 | + | |
7841 | 7848 |
| |
7842 |
| - | |
7843 |
| - | |
7844 |
| - | |
7845 |
| - | |
7846 |
| - | |
7847 |
| - | |
7848 |
| - | |
| 7849 | + | |
| 7850 | + | |
7849 | 7851 |
| |
7850 |
| - | |
| 7852 | + | |
| 7853 | + | |
| 7854 | + | |
| 7855 | + | |
| 7856 | + | |
| 7857 | + | |
| 7858 | + | |
| 7859 | + | |
| 7860 | + | |
| 7861 | + | |
| 7862 | + | |
7851 | 7863 |
| |
7852 |
| - | |
7853 |
| - | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
| 7870 | + | |
7854 | 7871 |
| |
7855 |
| - | |
| 7872 | + | |
7856 | 7873 |
| |
7857 |
| - | |
7858 |
| - | |
| 7874 | + | |
| 7875 | + | |
7859 | 7876 |
| |
7860 |
| - | |
| 7877 | + | |
7861 | 7878 |
| |
7862 |
| - | |
7863 |
| - | |
| 7879 | + | |
| 7880 | + | |
| 7881 | + | |
| 7882 | + | |
| 7883 | + | |
| 7884 | + | |
7864 | 7885 |
| |
7865 | 7886 |
| |
7866 | 7887 |
| |
|
0 commit comments
Comments
(0)