Optimize PL/Perl function argument passing [PATCH]

From: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Optimize PL/Perl function argument passing [PATCH]
Date: 2010-12-07 14:24:17
Message-ID: 20101207142417.GO89294@timac
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Changes:

Sets the local $_TD via C instead of passing an extra argument.
So functions no longer start with "our $_TD; local $_TD = shift;"

Pre-extend stack for trigger arguments for slight performance gain.

Passes installcheck.

Tim.

Attachment Content-Type Size
tim_plperl_td1.patch text/x-patch 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2010-12-07 14:31:14 Re: To Signal The postmaster
Previous Message Dmitriy Igrishin 2010-12-07 14:10:50 Feature request - CREATE TYPE ... WITH OID = oid_number.