Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-03 Thread Simon
On 2 April 2012 22:25, Stuart Dallas stu...@3ft9.com wrote: On 2 Apr 2012, at 15:37, Simon wrote: On 2 April 2012 14:27, Stuart Dallas stu...@3ft9.com wrote: On 2 Apr 2012, at 14:12, Simon wrote: Thanks Maciek On 2 April 2012 10:37, Maciek Sokolewicz maciek.sokolew...@gmail.com

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Simon Schick
2012/4/1 Simon slg...@gmail.com Another thing that's possible in .NET is the Singleton design pattern. (Application variables are an implementation of this pattern) This makes it possible to instantiate a static class so that a single instance of the object is available to all threads (ie

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Simon
Thanks Simon. you got my hopes up there for a second. From the php docs page: Critics further argue that it is pointless to use a Singleton in a Shared Nothing Architecture like PHP where objects are unique within the Request only anyways. I want the the singleton class to be global to the

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Maciek Sokolewicz
On 02-04-2012 10:12, Simon wrote: Thanks Simon. you got my hopes up there for a second. From the php docs page: Critics further argue that it is pointless to use a Singleton in a Shared Nothing Architecture like PHP where objects are uniquewithin the Request only anyways. I want the the

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Simon
Thanks Maciek On 2 April 2012 10:37, Maciek Sokolewicz maciek.sokolew...@gmail.comwrote: On 02-04-2012 10:12, Simon wrote: Thanks Simon. you got my hopes up there for a second. From the php docs page: Critics further argue that it is pointless to use a Singleton in a Shared Nothing

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Stuart Dallas
On 2 Apr 2012, at 14:12, Simon wrote: Thanks Maciek On 2 April 2012 10:37, Maciek Sokolewicz maciek.sokolew...@gmail.comwrote: On 02-04-2012 10:12, Simon wrote: Thanks Simon. you got my hopes up there for a second. From the php docs page: Critics further argue that it is pointless

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-02 Thread Stuart Dallas
On 2 Apr 2012, at 15:37, Simon wrote: On 2 April 2012 14:27, Stuart Dallas stu...@3ft9.com wrote: On 2 Apr 2012, at 14:12, Simon wrote: Thanks Maciek On 2 April 2012 10:37, Maciek Sokolewicz maciek.sokolew...@gmail.comwrote: On 02-04-2012 10:12, Simon wrote: Thanks Simon. you

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-04-01 Thread Simon
On 1 April 2012 13:52, Simon slg...@gmail.com wrote: On 31 March 2012 20:44, Stuart Dallas stu...@3ft9.com wrote: On 31 Mar 2012, at 13:14, Simon wrote: Thanks again Stuart. On 31 March 2012 12:50, Stuart Dallas stu...@3ft9.com wrote: On 31 March 2012 11:19, Simon slg...@gmail.com

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-03-31 Thread Stuart Dallas
On 31 Mar 2012, at 02:33, Simon wrote: Or: Why doesn't PHP have Applications variables like ASP.NET (and node.js) ? Hi, I'm working on optimising a php application (Drupal). The best optimisation I've found so far is to use APC to store various bits of Drupal data in RAM. The

Re: [PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-03-31 Thread Stuart Dallas
On 31 Mar 2012, at 13:14, Simon wrote: Thanks again Stuart. On 31 March 2012 12:50, Stuart Dallas stu...@3ft9.com wrote: On 31 March 2012 11:19, Simon slg...@gmail.com wrote: Thanks for your answer. On 31 March 2012 09:50, Stuart Dallas stu...@3ft9.com wrote: On 31 Mar 2012, at 02:33,