Optimize memory allocation code

From: Li Japin <japinli(at)hotmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Optimize memory allocation code
Date: 2020-09-25 16:14:44
Message-ID: 3A57E434-BB2C-420C-86C8-0A81AE23F679@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-Optimize-memory-allocation-code.patch application/octet-stream 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-09-25 16:17:05 Re: Load TIME fields - proposed performance improvement
Previous Message Greg Nancarrow 2020-09-25 15:52:50 Re: Parallel INSERT (INTO ... SELECT ...)