Req #74620 [Com]: new function pls

From: Date: Mon, 22 May 2017 12:55:37 +0000
Subject: Req #74620 [Com]: new function pls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209221@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: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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

« previous php.bugs (#209221) next »