3 ms·
From what I can tell, the speedup is because it's using var_dump() to a file and require() for persistence to disk and caching. That basically uses the built i
by tyingq 6y ago
From what I can tell, the speedup is because it's using var_dump() to a file and require() for persistence to disk and caching. That basically uses the built in opcache as a data cache. It also looks like there's race conditions there: https://github.com/alexdodonov/mezon-router/blob/master/RoutesSet.php#L210 https://github.com/alexdodonov/mezon-router/blob/master/Rout...
I would imagine you could tweak any router to use a cache like Apcu or Redis and get similar numbers.