- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit09b07c2
committed
Minor performance improvement for SQL-language functions.
Late in the development of commit0dca5d6, I added a step to copythe result tlist we extract from the cached final query, becauseI was afraid that that might not last as long as the JunkFilter thatwe're passing it off to. However, that turns out to cost a noticeablenumber of cycles, and it's really quite unnecessary because theJunkFilter will not examine that tlist after it's been created.(ExecFindJunkAttribute would use it, but we don't use that functionon this JunkFilter.) Hence, remove the copy step. For safety,reset the might-become-dangling jf_targetList pointer to NIL.In passing, remove DR_sqlfunction.cxt, which we don't use anymore;it's confusing because it's not entirely clear which context itought to point at.1 parentf4ece89 commit09b07c2
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
787 | 786 | | |
788 | 787 | | |
789 | 788 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | 789 | | |
797 | 790 | | |
798 | 791 | | |
| |||
807 | 800 | | |
808 | 801 | | |
809 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
810 | 814 | | |
811 | 815 | | |
812 | 816 | | |
| |||
1245 | 1249 | | |
1246 | 1250 | | |
1247 | 1251 | | |
1248 | | - | |
1249 | 1252 | | |
1250 | 1253 | | |
1251 | 1254 | | |
| |||
0 commit comments
Comments
(0)