Optimize memory allocation code - Mailing list pgsql-hackers

From Li Japin
Subject Optimize memory allocation code
Date
Msg-id 3A57E434-BB2C-420C-86C8-0A81AE23F679@hotmail.com
Whole thread Raw
Responses Re: Optimize memory allocation code  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-hackers
Hi, hackers!

I find the palloc0() is similar to the palloc(), we can use palloc() inside palloc0()
to allocate space, thereby I think we can reduce  duplication of code.

Best regards!

--
Japin Li


Attachment

pgsql-hackers by date:

Previous
From: Greg Nancarrow
Date:
Subject: Re: Parallel INSERT (INTO ... SELECT ...)
Next
From: Tom Lane
Date:
Subject: Re: Load TIME fields - proposed performance improvement