Re: Pre-alloc ListCell's optimization
| От | Stephen Frost |
|---|---|
| Тема | Re: Pre-alloc ListCell's optimization |
| Дата | |
| Msg-id | 20120518211514.GA1267@tamriel.snowman.net обсуждение |
| Ответ на | Re: Pre-alloc ListCell's optimization (Stephen Frost <sfrost@snowman.net>) |
| Ответы |
Re: Pre-alloc ListCell's optimization
|
| Список | pgsql-hackers |
* Stephen Frost (sfrost@snowman.net) wrote:
> Alright, so I've done some pgbench's using all default configs with just
> a straight up './configure' and pgbench -S -T 300, 3 runs each and then
> averaged:
>
> llist_opt: 9289 tps
> HEAD: 9286 tps
Ok, apparently part of the issue with the previous changes was that the
way copyList() worked it still ended up doing multiple palloc's, and
apparently that's used a lot. Reworking that gave us a bit more
noticably improvement:
llist_opt: 9407 tps
Which gives us ~1.3% improvment.
The current patch still only pre-alloc's 8 ListCell's, but I've modified
it such that we might be able to use repalloc() to grow that number by 8
(or more..) instead of falling back to the regular palloc() for every
ListCell when we get more than 8 entries.
Thanks,
Stephen
В списке pgsql-hackers по дате отправления: