Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pedro93
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
pedro93
12y ago
well, just for fun!
32.
▲
R3 – High-performance URL router library in C
(github.com)
77 points
by
pedro93
12y ago
|
29 comments
33.
▲
by
pedro93
13y ago
It's really amazing, how does it work?
34.
▲
Impact Resistant Screen Protector
(shopify.evolutivelabs.com)
2 points
by
pedro93
13y ago
|
1 comments
35.
▲
by
pedro93
13y ago
Explain here: - Pux uses simpler data structure (indexed array) to store the patterns and flags. (In PHP internals, zend_hash_index_find is faster than zend_hash_find). - When matching routes, symfony uses a lot of function calls for each r
36.
▲
by
pedro93
13y ago
well, flight is not written in C extension. have checked the code, there are a lot of magic method calls in flightphp. magic method calls are even slower than normal method call.
37.
▲
by
pedro93
13y ago
Yes you can use APC, opcache or XCache to load php bytecode in runtime. but you are still calling php functions/methods or creating a lot of objects in runtime. that's the overhead.
38.
▲
by
pedro93
13y ago
1.5x-2x different is from apache. the pure dispatching speed can be 10+x faster with C extension.
39.
▲
by
pedro93
13y ago
I don't think so. Using pure PHP, you need to load a lot of class files. and function calls, method calls, hash find are pretty slow in pure PHP. - First of all, while using C extension, you don't need to reload these php class fi
40.
▲
by
pedro93
13y ago
Yes, you can do routing without compiled routes.
41.
▲
by
pedro93
13y ago
First of all, for your information, the benchmark code and details are already there: https://github.com/c9s/router-benchmark sorry I forgot to put the link. :p We firstly tested the pure dispatching benchmark by a s
42.
▲
Pux – High Performance Router for PHP
(github.com)
99 points
by
pedro93
13y ago
|
56 comments
43.
▲
High performance router for PHP, support APC cache, RESTful interface
(github.com)
1 points
by
pedro93
14y ago
|
0 comments
44.
▲
A standalone, lightweight, fast asset manager, designed for PHP applications.
(github.com)
1 points
by
pedro93
14y ago
|
0 comments