note 115292 added to ref.sem
| From: | HansRich | Date: | Mon, 30 Jun 2014 21:00:42 +0000 |
| Subject: | note 115292 added to ref.sem | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199784@lists.php.net to get a copy of this message | ||
For shared memory needs, these functions are greatly outdated and inefficient.
They don't provide read/write locking and they use a single linked list for storing the
variables, which means they have an average complexity of O(n/2) where n is the number of variables
in the segment.
For a better alternative use APC Functions which implement proper read/write locking and use a hash
table so they have good efficiency even for large amounts of variables:
http://php.net/manual/en/ref.apc.php
----
Server IP: 72.52.91.14
Probable Submitter: 201.187.75.218
----
Manual Page -- http://php.net/manual/en/ref.sem.php
Edit -- https://master.php.net/note/edit/115292
Del: integrated -- https://master.php.net/note/delete/115292/integrated
Del: useless -- https://master.php.net/note/delete/115292/useless
Del: bad code -- https://master.php.net/note/delete/115292/bad+code
Del: spam -- https://master.php.net/note/delete/115292/spam
Del: non-english -- https://master.php.net/note/delete/115292/non-english
Del: in docs -- https://master.php.net/note/delete/115292/in+docs
Del: other reasons-- https://master.php.net/note/delete/115292
Reject -- https://master.php.net/note/reject/115292
Search -- https://master.php.net/manage/user-notes.php