4 ms·
Please describe how this script is crap. It's short and to the point, it does its job, handles the load, and it doesn't pass bogus characters to the command lin
by delinka 14y ago
Please describe how this script is crap. It's short and to the point, it does its job, handles the load, and it doesn't pass bogus characters to the command line.
Perhaps it needs commenting? Could be formatted more nicely? I'm truly interested in your characterization because I'm just not seeing it.
- reidrac 14y agoI don't know if the 350k hits run that script, let's say they did. The OP is praising the performance of lighttpd + php5-fpm, but the script actually spawns an external process to search for the UUID. That's like running an old GGI that needs to be executed with every request. I may be wrong but using lighttpd and php5-fpm (with fastcgi) may not be as relevant as it seems. I'd say that the operating system is caching everything. EDIT: yes, php-fom is "a simple and robust FastCGI Process Manager for PHP". I'm no doing much PHP lately!
- deleted 14y ago[deleted]
- delinka 14y agoPremature optimization. Obviously, this thing works well enough and handles the load. Why worry about whether it's launching a process? When the system begins to show signs of stress, you look at where it's spending its time, then alleviate the bottleneck.
- james-skemp 14y agoFinally ran the tool and the only issue I had was that the 'not found' message was at the bottom of the page, now below the fold. When I first visited the site, before he started putting more text on the page, I don't think I would have run into the issue. Browser window isn't maximized; if I scroll all the way up it cuts off the last two paragraphs/sentences (link to his wife's blog and the results). Otherwise it's simple; it doesn't need to be flashy when it's a one-stop site (unless they release the remaining ones).