Re: [HACKERS] realloc suggestion

2001-01-23 Thread Karel Zak
On Mon, 22 Jan 2001, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I again a little look at aset code and I probably found small performance > > reserve in small chunks (chunk <= ALLOC_CHUNK_LIMIT) reallocation. > > Hmm. I wouldn't have thought that realloc got called often eno

Re: [HACKERS] realloc suggestion

2001-01-22 Thread Tom Lane
Karel Zak <[EMAIL PROTECTED]> writes: > I again a little look at aset code and I probably found small performance > reserve in small chunks (chunk <= ALLOC_CHUNK_LIMIT) reallocation. Hmm. I wouldn't have thought that realloc got called often enough to be worth optimizing, but it does seem to g

[HACKERS] realloc suggestion

2001-01-22 Thread Karel Zak
Hi Tom, I again a little look at aset code and I probably found small performance reserve in small chunks (chunk <= ALLOC_CHUNK_LIMIT) reallocation. Current code for *all* small chunks call AllocSetAlloc() for new larger chunk, memcpy() for data copy, AllocSetFree() for old chunk. But th