# Laravel Conf ! 參考 https://hackmd.io/@LaravelTaiwan/Conf2020/https%3A%2F%2Fhackmd.io%2FcfVC21Z-SsmjKoMmx5qaEg 以及我自己的筆記 First .PHP 8 --- #### 效能提升 ##### JIT(動態編譯)  - JIT 使用限制 - 限 x86 - CPU-bound - 理論上「強型別」會提升效能 - 結果 - 效能提升大約 30% ! - 建議 - 多使用並習慣強型別寫法 - 先了解 CPU-bound ,程式哪裡與 CPU-bound 有關 - 考慮要不要升 PHP8 Second . Laravel 如何增進效能? ---  #### PHP 調教 PHP 特性: PHP 原生函式的 overhead 相對大,減少原生函式呼叫,可能會提升效能 - loop over array - array_keys & index & for >= foreach > while - array add item - array_push($arr, $item) -> $arr[] = $item; - 檢查 key //? - array_key_exists() - isset() -> faster - array syntax - array() -> [] - string length - isset($string[10]) -> strlen($string) - function - call_user_func($func) -> $func() #### Laravel 調教 - php artisan optimize - php artisan optimizer clear - 移除未使用的 ServiceProvider - 移除多餘 Middleware - with() 改善 SQL query (eager loading) 減少 query 次數 - LazyCollection Third .敏捷儀表板 (Agile Dashboard) --- 參考:https://docs.gitlab.com/ee/user/project/issue_board.html GitLab發行板是一個軟件項目管理工具,用於計劃,組織和可視化功能或產品發布的工作流程。它可以用作看板或 Scrum板。 它結合了問題跟踪和項目管理功能,將所有內容保持在同一位置,因此您無需在不同平台之間切換即可組織工作流程。  Forth .無服務器PHP應用程序(Serverless PHP Applications) --- APIs and microservices是我們構建現代Web應用程序的方式,無服務器技術使這一過程變得容易。無服務器系統的工作方式,應用程序的構建方式以及如何利用PHP技能來構建各種形狀和大小的API。 Fifth .無服務器Laravel與Bref --- Laravel -> bref -> aws -> 公有url Sixth .我們與 Serverless 的距離 ---
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up