Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92533 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22480 invoked from network); 20 Apr 2016 10:43:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2016 10:43:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-ig0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:34897] helo=mail-ig0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/07-14036-95D57175 for ; Wed, 20 Apr 2016 06:43:37 -0400 Received: by mail-ig0-f170.google.com with SMTP id gy3so124606520igb.0 for ; Wed, 20 Apr 2016 03:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-transfer-encoding; bh=CwAkpXC3WKkK+jw1lHT4tJ1v5wUDSCXZFq980Ntpa8U=; b=uIs4GVBHNZ7CsaTbLrAOheaatuLmlmNxvG7kKMYty3eKZEp19sppUfk1u/NBbCCJaA P772VVAtGDe7wCmeX1fVpOQ8MSq1GvIe9VFLsLstEyh6IaUZ8pHwJlexmedP7C6DRyDn 3tDB5lDiSkDTCVPbXgEXi73EAjFO0mKSwNi5slM1J5RvlynPBxTdqQ9x6ex8HgMM5YXn sGOOWp5pHppU1HReiwQXwejLcCVP/qrFtYoMJt7zanRIxQDUUJE/SOHMR8MGPR11wU++ TP1ceT9wRQUUTOjUR8utsQNXzQ0CWW5Cl4Ou5wb2KSeqkRwYe+IP8a5XtmbyThhedcN/ MrTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-transfer-encoding; bh=CwAkpXC3WKkK+jw1lHT4tJ1v5wUDSCXZFq980Ntpa8U=; b=PrDvK4I02d7nQwC8jXwqVv/hVW9dWX3HxABgyQM26bgi9ZH2fM2L/YZvDgk9UzuRoJ BFOZ0y64DcuiKx5IBhh9K3Hbcgap+ThoV/WjQP1VUGMzDfPe+UZ4BSSkKRwZ7rgm1jFi pdzm5c0huT9o0kSs8RgkkVxhouBBjhI7uprQA2x63h1Q2crd/oxa0ZABJB8WMQ1pV+ZY 5o4YRX6KGcVy0nIYUHOFxmCH5+bTSnUFPf3J3AuizmIxxeUlU/Ypahu95An9oLAnZr3C d4CfwKnvp7LwEp3G2qdLjtRZB6bw9XBUC0n/GBk5VH5ujgnODll+0IFcpJkTKpAX5UaI PeZw== X-Gm-Message-State: AOPr4FXINquE6cibuE93XGE00QqCtWcn9i1/NlrsVfquzXHzo8tGXte0QUxe6Q7iic6MRAG5N7NAYdveWtyEWg== MIME-Version: 1.0 X-Received: by 10.50.28.42 with SMTP id y10mr2762262igg.24.1461149015060; Wed, 20 Apr 2016 03:43:35 -0700 (PDT) Received: by 10.50.54.201 with HTTP; Wed, 20 Apr 2016 03:43:34 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Apr 2016 13:43:34 +0300 Message-ID: To: David Zuelke Cc: Lin Yo-An , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Proposal: Startup snapshot for optimizing app load time From: ua.san.alex@gmail.com ("S.A.N") 2016-04-19 19:54 GMT+03:00 David Zuelke : > I think this solution is merely a band-aid for a more profound architectu= ral weakness of current PHP setups, where a web server call out to the engi= ne (via embedding or FastCGI) to execute a script, which causes this recurr= ing initialization overhead in the first place. > > The future is (or should be) servers implemented fully in PHP code (e.g. = PHP-PM), just like every other comparable language (Ruby, Python, Java, ...= ) already does. That also brings many other benefits, such as the ability t= o handle upgrades to WebSockets in the same codebase, stream request bodies= as they're being uploaded, and so forth. > > And the performance figures that PHP-PM delivers with Symfony validate th= at approach IMO. > I agree, and developers are already discussing a common event-loop API: https://github.com/async-interop/event-loop