Req #74620 [Com]: new function pls
| From: | mags at inbox dot ru | Date: | Mon, 22 May 2017 08:45:47 +0000 |
| Subject: | Req #74620 [Com]: new function pls | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209216@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74620&edit=1
ID: 74620
Comment by: mags at inbox dot ru
Reported by: mags at inbox dot ru
Summary: new function pls
Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
Operating System: linux
PHP Version: Next Major Version
Block user comment: N
Private report: N
New Comment:
Imagine you need to find a way between two cities in a large graph for example Google maps where
millions of cities.
You do not need data about all cities. If there is a common array this is easy, you immediately look
for it on the path. If the memcashed database or something else you load all the cities for a very
long time.
Previous Comments:
------------------------------------------------------------------------
[2017-05-22 08:24:13] mags at inbox dot ru
Memcashed has a bunch of restrictions since it does not support the execution of code inside itself,
speed and ending with the fact that it is third-party.
The shared memory of the server that is always loaded into zend structures and immediately ready for
work would be much more convenient and faster.
In PHP there are many global arrays why not make another one, for those who need to do something
quickly and conveniently.
Imagine a common map for all customers is 100 million values ââand it is not known in
advance which ones are necessary, they can be requested only by 1.
How long it would have been on memcashed or the database is minutes or tens of minutes and how
quickly when it's already loaded during script execution less than a second.
------------------------------------------------------------------------
[2017-05-21 22:09:48] spam2 at rhsoft dot net
> global map around 1000-3000mb need wait 3-5 sek for load
it is *not* the job of a programming language to store such amount of data between requests - just
get APCu or memcached - you confuse programming lanuguage with frameworks
------------------------------------------------------------------------
[2017-05-21 21:51:52] mags at inbox dot ru
session this very slow while wait memory copy
+ session not work for all server
catch to slow while wait load.
global map around 1000-3000mb need wait 3-5 sek for load
need fast server memory for all script always loaded
------------------------------------------------------------------------
[2017-05-21 09:10:03] requinix@php.net
Use a session or caches.
------------------------------------------------------------------------
[2017-05-21 09:05:33] mags at inbox dot ru
Description:
------------
In which patch will be added a global array of servers, whose data is always in the server's
memory and available for all scripts. Each script can be changed.
Test script:
---------------
client1.php
$map[1][4] = "test";
$_GLOBAL_ARRAY["MAP"] = $map;
client2.php;
$map = $_GLOBAL_ARRAY["MAP"];
print_r($map);
result in screen "test";
Expected result:
----------------
result in screen "test";
Actual result:
--------------
not have function now
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74620&edit=1