Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85945 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70476 invoked from network); 24 Apr 2015 11:54:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2015 11:54:06 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.48 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.215.48 mail-la0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:34064] helo=mail-la0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/61-52524-DDE2A355 for ; Fri, 24 Apr 2015 07:54:06 -0400 Received: by laat2 with SMTP id t2so33345471laa.1 for ; Fri, 24 Apr 2015 04:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=b548uzJzWceTGmyHSp6rDiW32uOgJxbvgcctbhRgQbs=; b=Vm9uQk2jnpNtiK2pgFzo6jpDGY+1M/MmSMgcVMQGWLDuANu16JoQut13nN7do/ZLy8 WKUETa6oD/a1kf7z+bvRxZtGJsQbj3va8xO6DjX7uAUCINGBrdTGDAmkgf0aZ+OzvSXc Dp7/iGHjUTw+VA3M4PaLrdRKGsmYdoassyJ5/2LYj1NlhBeOvjZkQm62KHXkCUZq31d4 TM6KCPJ3D3BkrlaQez5aURIEkAx+rcKSq5dbR2LuXF92wuZuqCRpe825OBeCVsziGMY2 8qVt/x8DgRMHtVh94vsGbTYCJvSPgt+QY+QiHVahs13rPd93XICVZz5jDYUXaFUAcoTo xstg== X-Received: by 10.152.28.97 with SMTP id a1mr6720649lah.9.1429876443140; Fri, 24 Apr 2015 04:54:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.32.74 with HTTP; Fri, 24 Apr 2015 04:53:42 -0700 (PDT) In-Reply-To: <1429869562.11703.11.camel@kuechenschabe> References: <5537826A.9010209@gmx.de> <5538881C.8010502@oracle.com> <5538C2A7.4050600@lsces.co.uk> <5538CF4B.5090401@beccati.com> <5538D9B0.5020507@lsces.co.uk> <1429869562.11703.11.camel@kuechenschabe> Date: Fri, 24 Apr 2015 14:53:42 +0300 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Benjamin Eberlei , PHP internals Content-Type: multipart/alternative; boundary=089e0160b7d47759fb0514770d2a Subject: Re: [PHP-DEV] Re: PDO Oracle driver From: arvids.godjuks@gmail.com (Arvids Godjuks) --089e0160b7d47759fb0514770d2a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015-04-24 12:59 GMT+03:00 Johannes Schl=C3=BCter : > On Fri, 2015-04-24 at 09:16 +0300, Arvids Godjuks wrote: > > May I question the sanity of the words written in this email? :D (it's = a > > joke). > > > > The whole point of mysqlnd drivers and other improvements was to cut do= wn > > on data copying, improving performance and doing a lot of other stuff. > > Moving PDO to a PHP implementation will kill it all: preformance will > > suffer, memory usage will skyrocket, dealing with charsets - I don't ev= en > > wana pretend I understand how to deal with that part in a proper fasion= . > > Doesn't it require access to internal PHP api's to do a lot of what PDO > and > > other native drivers do? > > Well, the Zephyr could pitch in here, MAYBE, depending on how good it > > actually is and what it can do, but still, it feels more like a cruch t= o > me. > > In many many different topics I stressed that we should do things in > userland and use extensions only when needed for performance. > > Doing things in userland gives > * better debugability > * better understanding for users > * lower entry barrier > * faster development time > * better ability to evolve (different library versions can coexist > on a system, for old and new code) > > With the changes in PHP 7 this is viable for even more areas. What PDO > does is very thin. And mind: If a user truly cares about the last bit of > performance they won't use an abstraction, they use DBMS-specific SQL > and cut out abstractions. But for many cases that level of performance > matters, as usage of ORMs etc. show. Also mind that processing in the > database server and network traffic probably cost way more time than a > thin wrapper even in userspace (in real life, not in "SELECT 1") > > johannes > > > It may have a merit to try it out, and as I said - Zephyr is an interesting idea to try - may work quite well considering. --089e0160b7d47759fb0514770d2a--