sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

588
active users

#性能優化

0 posts0 participants0 posts today

🌕 Ruby 3.4 凍結字串:Rails 開發者真正需要知道的事
➤ 逐步導入凍結字串字面量,提升 Rails 應用程式效能
prateekcodes.dev/ruby-34-froze
Ruby 3.4 開始逐步導入預設凍結字串的功能。這對現有的 Rails 應用程式沒有直接影響,但 Ruby 提供了可選擇開啟的警告,幫助開發者提前做好準備。本文詳細解釋了凍結字串的逐步導入計畫、實際變更、優化原因,以及如何在 Rails 應用程式中發現並解決相關問題,並提供升級建議。
+ 這篇文章寫得非常清楚,讓我不必擔心升級 Ruby 3.4 會立刻破壞我的 Rails 專案。瞭解了逐步導入的過程後,我會開始在開發環境中啟用警告。
+ 凍結字串可以提升效能?這聽起來很棒!我會先檢查我的專案中的字串操作部分,看看是否有可以優化的空間。
#Ruby #Rails #性能優化

Prateek Codes - Learn Building Scalable Backend Systems · Ruby 3.4 Frozen String Literals: What Rails Developers Actually Need to KnowRuby 3.4 starts the transition to frozen string literals by default. Here's what changes, why you should care, and how to prepare your Rails app.

🌕 讓 rav1d 視訊解碼器提速 1%
➤ 透過分析和優化,提升 AV1 解碼器的效率
ohadravid.github.io/posts/2025
這篇文章記錄了作者嘗試優化 Rust 版本的 AV1 視訊解碼器 rav1d 性能的過程。作者參與了 memorysafety.org 舉辦的性能提升競賽,透過分析 profiler 的資料,發現了兩個小的性能瓶頸,並針對其中一個瓶頸進行了優化,成功將解碼速度提升了略高於 1%,且未使用任何不安全的程式碼。優化重點集中在 cdef 濾鏡的實現上,發現 rav1d 使用了較大的暫存緩衝區來歸零,而 C 版本的 dav1d 則使用更精簡的方式。
+ 這篇文章很棒!詳細解釋瞭如何透過分析性能瓶頸,並針對性地進行優化,即使是很小的改進也能帶來實際的效能提升。
+ 令人印象深刻的是作者在未使用不安全程式碼的前提下完成了優化,這對於 Rust 語言來說尤其重要,也證明瞭 Rust 在性能上的潛力。
#視訊解碼 #性能優化 #Rust #AV1

ohadravid.github.ioMaking the rav1d Video Decoder 1% Faster*on macOS with an M3 chip *slightly more than 1%, on a specific benchmark, without any new unsafe code A while ago, memorysafety.org announced a contest for …

🌗 Python擴展應該是懶惰的
➤ 如何通過懶惰加載數據來優化Python擴展的性能
gauge.sh/blog/python-extension
本文介紹瞭如何通過將AST相關操作移至Rust擴展中來優化Python工具的性能,並探討了懶惰加載數據的優點。
+ 這篇文章很有用,我學到了很多關於Python擴展的知識。
+ 很好的解釋了為什麼Python擴展應該是懶惰的,這對我來說很有幫助。
#Python #擴展 #性能優化

www.gauge.shPython extensions should be lazyPython's memory model is a performance bottleneck