Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62618 invoked from network); 2 Jul 2013 10:34:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2013 10:34:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.114.167 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.114.167 spritz.beccati.com Received: from [176.9.114.167] ([176.9.114.167:37774] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/D1-49923-C9CA2D15 for ; Tue, 02 Jul 2013 06:34:07 -0400 Received: (qmail 17015 invoked from network); 2 Jul 2013 10:33:59 -0000 Received: from home.beccati.com (HELO ?192.168.1.202?) (88.149.176.119) by mail.beccati.com with SMTP; 2 Jul 2013 10:33:59 -0000 Message-ID: <51D2AC78.3040206@beccati.com> Date: Tue, 02 Jul 2013 12:33:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Yasuo Ohgaki CC: "internals@lists.php.net" References: <51CAB115.60602@beccati.com> <51D29355.9040807@beccati.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] pgsql: Binary data support improvement From: php@beccati.com (Matteo Beccati) On 02/07/2013 12:21, Yasuo Ohgaki wrote: > 2013/7/2 Matteo Beccati > > We could easily (and transparently) use binary for the parameters > explicitly bound as LOB, but I see no way we can use binary for results > -- which usually is the most common operation. Maybe it's better than > nothing though? > > The API is not for ease of use, but for better performance as it eliminate > needless hex conversions on both server and client side. What I meant is that we might have that speed improvements for free in PDO when bytea is used as a parameter (i.e. most likely insert/updates). With no visible change for the user and full backwards compatibility. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/