TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP 7 at Tumblr

303 pointsby llambdaover 8 years ago

16 comments

orwareover 8 years ago
Another piece to this (for those using MySQL as their backend) is that updates to MySQL can improve things quite significantly as well.<p>In my work environment I&quot;m the main MySQL user so I had setup a dedicated MySQL 5.5 server a few years ago that I hadn&#x27;t upgraded to any newer versions since then (hey it wasn&#x27;t broke right?). But recently I had been looking into upgrading just because it felt like it was time, but earlier this week I was checking out some performance degradation on one of our sites and noticed in my local copy it was actually running quite a bit faster.<p>Investigating further, it seems that in the newer versions of MySQL (in my case, my local XAMPP was running MariaDB 10.1.x) the performance has improved quite a bit, particularly for the types of queries I was running on this site (which used a number of subqueries and GROUP BY clauses).<p>Without any sort of application level caching making this single switch from MySQL 5.5 to MariaDB 10.1.19 improved load times from about 3.0 seconds to 1.0 seconds and I&#x27;m going to add some application level caching as well to improve things further.<p>This was all without switching PHP versions on this particular site (which is still using PHP 5.4.45)...just thought I&#x27;d share since sometimes the slowness isn&#x27;t always improved as much just by upgrading PHP (which is something I&#x27;d like to do too for this site, but at the moment the framework I&#x27;m using on the site isn&#x27;t ready for PHP 7 so it&#x27;d be quite a bit of work to switch it out).
评论 #12922515 未加载
评论 #12926829 未加载
angry-hackerover 8 years ago
Despite all the negativity about PHP, I sincerely thank all the team behind it. Thanks to PHP and its easy way of start building stuff, I started learning programming.<p>While I have moved on, not because it&#x27;s hip to do so, I hope the community keeps rocking. Thank you again and congratulations.
0xmohitover 8 years ago
A recent post about PHP 7 deployment at DailyMotion [0].<p>Another one, Taking PHP Seriously [1].<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12704511" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12704511</a><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12703751" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12703751</a>
tiffanyhover 8 years ago
Is there anymore major performance improvements left to make to PHP or is everything else just dimishing returns?<p>No disrespect to the huge amount of work the PHP team has already completed, they should be praised.<p>Just curious to know if we can expect anymore major performance improvements like we saw from v5 to v7.<p>EDIT: After further searching, appears PHP 8 will have some sort of JIT (with the hope that it&#x27;ll continue to bring significant perf improvements. More info at <a href="http:&#x2F;&#x2F;news.php.net&#x2F;php.internals&#x2F;95531" rel="nofollow">http:&#x2F;&#x2F;news.php.net&#x2F;php.internals&#x2F;95531</a>
评论 #12925260 未加载
评论 #12925191 未加载
overcastover 8 years ago
That&#x27;s quite a performance improvement. I&#x27;m curious if this was directly related to just switching to PHP7, or something under the Tumblr hood, that they improved upon as well. While reviewing their own code.
评论 #12922151 未加载
评论 #12924580 未加载
评论 #12922734 未加载
评论 #12922071 未加载
评论 #12922125 未加载
评论 #12922073 未加载
usesover 8 years ago
We use the Rackspace Cloud Sites PAAS. They recently released a PHP 7 beta.<p>For our sites running Bolt - a PHP CMS which makes heavy use of autoloaded classes - we saw a performance improvement between 45 and 55 percent. For Wordpress, it was around 30-40%.
评论 #12924488 未加载
评论 #12923284 未加载
Judsonover 8 years ago
In addition to latency and cpu usage improvements, we also saw a substantial drop in memory usage for code that allocated a large number of objects. After the initial migration, PHP7 has been very solid in production.
sigi45over 8 years ago
I like the performance of php 7 very much. It has&#x2F;will have an impact on global warming.<p>The only frustrating thing about it is, that there was so much potential unused for so long. Manh k&#x2F;mwatts of power for nothing.
return0over 8 years ago
Wow good for the environment :)
piotrjurkiewiczover 8 years ago
I wonder if Wikipedia regrets its switch to HHVM, having in mind that PHP7 is quite the same fast as HHVM is real apps and switching to it would require much less work than to HHVM.
stefsover 8 years ago
&gt; As you can see, the latency dropped to less than half, and the load average at peak is now lower than it’s previous lowest point!<p>the graph they&#x27;re referencing shows the peak at higher than the previously lowest load. i guess &quot;peak average&quot; is the key to this.
rawoke083600over 8 years ago
We at www.pricecheck.co.za switched early this year. We were supersized how easy the transition was. We definitely saw a decrease in cpu usage about 20%. Also most of our php-extension(nothing exotic) was also supported already...
elcctover 8 years ago
Sorry for being a bit ignorant, but is there a point to use PHP 7 if you have HHVM?
libraryatnightover 8 years ago
Unrelated question: I couldn&#x27;t find any HN discussions on, what&#x27;s Tumblr&#x27;s future since the Verizon purchase? Yahoo let it be, it seems, has Verizon mentioned it?
rampage101over 8 years ago
PHP 7 is the next upgrade from PHP 5? I am very new to PHP and learning from a book which is PHP 5.
评论 #12929305 未加载
评论 #12929700 未加载
otto_ortegaover 8 years ago
Php 7 for the win!