Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75112 invoked from network); 14 Mar 2013 07:08:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2013 07:08:57 -0000 Authentication-Results: pb1.pair.com header.from=rene7705@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rene7705@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.49 as permitted sender) X-PHP-List-Original-Sender: rene7705@gmail.com X-Host-Fingerprint: 74.125.83.49 mail-ee0-f49.google.com Received: from [74.125.83.49] ([74.125.83.49:57424] helo=mail-ee0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/68-27533-98771415 for ; Thu, 14 Mar 2013 02:08:57 -0500 Received: by mail-ee0-f49.google.com with SMTP id d41so833690eek.8 for ; Thu, 14 Mar 2013 00:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=tsMtATPn1d192CNXGf6KNrajlQMi9BQmDwuDC1QxSNA=; b=wgBzH/nfEQuBz+r6vIzAKY/E4IGFQiMDmgY30oBIjJpmdxgF8KtileabcB1I6d55z5 rkE+QwcZ5R63+3XIV3E6NBaVJv9cZ6C9cEAuXejzlKiV1F4cKjktzQJLgRNJysHTjzty Um7axGY+xd7sweBztZjYlvJgZb9TsymOKKPGZ80eUB5R9MYKE3lbjsQE30zkco1u0X/Q IDrMmYq7VmLJH1+G3zctBILb9bMPoAS1GdjAszdrzt2B+j8RUh7/ExOLDTAGt0JZ2Qmn Mf3fuIhR94tX0Mo9MzDfAHGiu42vmlC25cxOcW+1FhMbZS3dW6rBYWlkrZnp1qONjeD2 hPWw== X-Received: by 10.15.45.201 with SMTP id b49mr3849301eew.9.1363244934440; Thu, 14 Mar 2013 00:08:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.41.13 with HTTP; Thu, 14 Mar 2013 00:08:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Mar 2013 08:08:23 +0100 Message-ID: To: internals Content-Type: multipart/alternative; boundary=089e0160c18c0f4cec04d7dd323b Subject: Re: feature request : easy shared memory From: rene7705@gmail.com (rene7705) --089e0160c18c0f4cec04d7dd323b Content-Type: text/plain; charset=ISO-8859-1 oh, if no PHP threads/processes are active, all sharedmem's would still be allocated by the PHP OS-level process itself, of course, to prevent any overhead as new PHP calls are made that access this sharedmem. On Thu, Mar 14, 2013 at 8:05 AM, rene7705 wrote: > Hi. > > I'd like to build a replacement for SQL (yes, talk about an ambitious > project! ;), because the constant transferal of data in and out of SQL from > Javascript (where everything might as well be object-oriented and > hierarchial) is a pain in the neck. > > But in order to do so, I'd very much like PHP (the server still controls > the data after all) to support shared memory efficiently. > > Something like > > sharedmem $bigNestedArray; // $bigNestedArray would be shared accross the > entire server and all CPUs on it. > > as you now have > > global $bigNestedArray; > > would be ideal. > > I bet this would be useful for a host of other applications as well, and > fairly easy to implement. > > I'm an application programmer by trade, or I would hack this in myself. > > I'd much rather see the PHP development team develop this in properly. I > don't think it would require much time, as OS-level shared memory has been > easy to implement since the 1990s. > > Please put this on the agenda, and get back to us in this thread as to > when this will be available. > --089e0160c18c0f4cec04d7dd323b--