From: | Richard Guo <guofenglinux(at)gmail(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Cc: | David Rowley <dgrowleyml(at)gmail(dot)com>, Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
Subject: | Improve list manipulation in several places |
Date: | 2023-04-21 07:34:42 |
Message-ID: | CAMbWs49dJnpezDQDDxCPKq7+=_3NyqLqGqnhqCjd+dYe4MS15w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
There was discussion in [1] about improvements to list manipulation in
several places. But since the discussion is not related to the topic in
that thread, fork a new thread here and attach a patch to show my
thoughts.
Some are just cosmetic changes by using macros. The others should have
performance gain from the avoidance of moving list entries. But I doubt
the performance gain can be noticed or measured, as currently there are
only a few places affected by the change. I still think the changes are
worthwhile though, because it is very likely that future usage of the
same scenario can benefit from these changes.
(Copying in David and Ranier. Ranier provided a patch about the changes
in list.c, but I'm not using that one.)
Thanks
Richard
Attachment | Content-Type | Size |
---|---|---|
v1-0001-Improve-list-manipulation-in-several-places.patch | application/octet-stream | 8.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jelte Fennema | 2023-04-21 07:39:37 | Re: Issue in postgres_fdw causing unnecessary wait for cancel request reply |
Previous Message | Jehan-Guillaume de Rorthais | 2023-04-21 07:17:15 | Re: Commitfest 2023-03 starting tomorrow! |