Req #74620 [Com]: new function pls
| From: | spam2 at rhsoft dot net | Date: | Mon, 22 May 2017 12:59:55 +0000 |
| Subject: | Req #74620 [Com]: new function pls | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209222@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: spam2 at rhsoft dot net
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:
Status: Wont fix
while i am not a php upstream-developer: PLEASE stop it - you have to realize that such border cases
don't belong into the core of a programming language
frankly you even don't gasp the implication if more than one vhost is running on the same
server and unlrelated scripts modify a shared data ressource, not speaking abotu the security
implication
when you need such a feature either write a php-extension in C/C++ and/or consider your application
design broken from the start
Previous Comments:
------------------------------------------------------------------------
[2017-05-22 12:55:32] mags at inbox dot ru
variant 2 for hard use
to get "inplace array constructor" from mmap resource.
So I would preload and fill such array once and reuse in each instance of a script on same server.
------------------------------------------------------------------------
[2017-05-22 10:26:08] mags at inbox dot ru
"spam2 at rhsoft dot net "
if i wanna google map or game server
"your application design is broken" ? realy?
or PHP need +1 global array and all ok?
------------------------------------------------------------------------
[2017-05-22 08:52:07] spam2 at rhsoft dot net
your application design is broken - learn about databases, indexes and so on
------------------------------------------------------------------------
[2017-05-22 08:45:44] mags at inbox dot ru
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=74620
--
Edit this bug report at https://bugs.php.net/bug.php?id=74620&edit=1