《PHP’s Zend Opcache Config & Web Viewer》
三個用來查 Opcache 狀態的小工具。
PHP 5.5. has zend opcache support in core. Since APC is not updated from long time, we made a switch to new Zend Opcache. Below is our config and web-based stats viewer.
《PHP’s Zend Opcache Config & Web Viewer》
三個用來查 Opcache 狀態的小工具。
PHP 5.5. has zend opcache support in core. Since APC is not updated from long time, we made a switch to new Zend Opcache. Below is our config and web-based stats viewer.
PHP7剛剛發佈了RC4, 包含一些bug修復和一個我們最新的性能提升成果(NEWS), 那就是」HugePageFy PHP TEXT segment」, 通過啟用這個特性,PHP7會把自身的TEXT段(執行體)」挪「到Huagepage上,之前的測試,我們能穩定的在Wordpress上看到2%~3%的QPS提升。
關於Hugepage是啥,簡單的說下就是默認的內存是以4KB分頁的,而虛擬地址和內存地址是需要轉換的, 而這個轉換是要查表的,CPU為了加速這個查表過程都會內建TLB(Translation Lookaside Buffer), 顯而易見如果虛擬頁越小,表裡的條目數也就越多,而TLB大小是有限的,條目數越多TLB的Cache Miss也就會越高, 所以如果我們能啟用大內存頁就能間接降低這個TLB Cache Miss,至於詳細的介紹,Google一搜一大堆我就不贅述了,這裡主要說明下如何啟用這個新特性, 從而帶來明顯的性能提升。
A SPECIFICATION FOR BUILDING APIS IN JSON
If you’ve ever argued with your team about the way your JSON responses should be formatted, JSON API is your anti-bikeshedding weapon.
By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application.
Clients built around JSON API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely.
《Create a Mobile Application Using WordPress, Ionic, and AngularJS》
用到了 Ionic Framework, ECMAScript 6, npm, webpack 等等,寫得不錯。
《API Platform》
寫 API 一直是相當困擾我的一件事。十個網站有十一種 API 寫法,而且一寫好就不能改,壓力不少。
API Platform 是一個基於 Symfony 上開發整理的一套架構,如果你熟悉 Symfony 的話可以省下不少腦細胞。