minor restrpos / markpos optimization

Поиск
Список
Период
Сортировка
Искать

minor restrpos / markpos optimization

От:
Neil Conway <neilc@samurai.com>
Дата:
Вложения:
This patch makes a minor optimization to the restrpos() and markpos()
implementations for btree and hash: to bump the reference count on a
buffer, it is more efficient to use IncrBufferRefCount() than to do a
ReadBuffer (for one thing we needn't acquire the BufMgrLock; we also
don't need to do a hash table lookup etc.)

Barring any objections I will apply to HEAD before end of day.

-Neil

Re: minor restrpos / markpos optimization

От:
Neil Conway <neilc@samurai.com>
Дата:
On Wed, 2004-11-17 at 11:20 +1100, Neil Conway wrote:
> This patch makes a minor optimization to the restrpos() and markpos()
> implementations for btree and hash: to bump the reference count on a
> buffer, it is more efficient to use IncrBufferRefCount() than to do a
> ReadBuffer

Applied.

-Neil


FAQ