

用在 IoT 裝置上的壓縮演算法 Heatshrink
source link: https://blog.gslin.org/archives/2021/09/29/10351/%e7%94%a8%e5%9c%a8-iot-%e8%a3%9d%e7%bd%ae%e4%b8%8a%e7%9a%84%e5%a3%93%e7%b8%ae%e6%bc%94%e7%ae%97%e6%b3%95-heatshrink/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

用在 IoT 裝置上的壓縮演算法 Heatshrink
在「Heatshrink – An ultra-lightweight compression library for embedded systems」這邊看到的演算法 Hearshrink,可以看到主打是在記憶體的用量受限的環境下壓縮。
在 2013 年的資料就有壓縮率的比較了:「heatshrink: An Embedded Data Compression Library」。
像是目前常被拿來使用的 ESP32 就只有 320KB 記憶體,gzip 就明顯太肥大了,HS 在這邊就可以犧牲壓縮率來換效能...
另外找了一下資料,發現有 lowzip 這個東西,走 ZIP 格式,記憶體用量也不高,不過軟體本身還掛 alpha:
Current x64 code footprint (for lowzip.c, excluding the test program) is about 3.2kB and RAM footprint is about 1.1kB.
如果之後打算要透過 LPWAN 之類的網路傳東西的話好像有可能會用到,先寫下來...
Related
WebP 的檔案大小未必比 JPEG 小...
在「Is WebP really better than JPEG?」這邊發現在差不多的條件需求下,WebP 壓出來的檔案大小未必會比 JPEG 小。 先講結論:提供服務的人可以先確認自家的 JPEG 壓縮是不是有先用 MozJPEG (壓縮率更好),然後再考慮要不要支援 WebP。 Google 在推 WebP 這個格式的時候,宣稱失真壓縮的部份可以比 JPEG 小 25%~34%:(出自「A new image format for the Web」) WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at…
June 25, 2020In "Browser"
檔案壓縮順序造成壓縮率的差異
Hacker News Daily 上看到「Why are tar.xz files 15x smaller when using Python's tar library compared to macOS tar?」這篇,作者問了為什麼他用 Python 的 tarfile 壓出來比起用 tar 壓出來小了 15 倍,檔案都是 JSON 檔壓成 XZ 格式: I'm compressing ~1.3 GB folders each filled with 1440 JSON files and find that there's a 15-fold difference between using…
March 15, 2021In "Computer"
cURL 支援 Zstandard
在「curl 7.72.0 – more compression」這邊看到新版的 cURL 要支援 Zstandard 了,查了一下發現 Zstandard 有對應的 RFC,在 RFC 8478:「Zstandard Compression and the application/zstd Media Type」。 對應到 server 端的部份,看起來可以用 tokers/zstd-nginx-module 搭 (在 nginx 環境下),不然就是 application 端要自己壓縮了。 不過普及率比較高的演算法是 Google 主導的 Brotli,查了一下壓縮率大概在同一個等級。 Facebook 沒有自家瀏覽器,推這些東西比較辛苦一點,但這次 cURL 決定支援 Zstandard 算是一個開始,讓開發者多了一個選擇可以用...
August 19, 2020In "Computer"
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Notify me of follow-up comments by email.
Notify me of new posts by email.
Post navigation
Recommend
-
15
-
16
PowerShell 壓縮 ZIP 檔-黑暗執行緒 同事在 Windows 10 高高興興寫了壓縮檔案的 PowerShell 小工具,丟上伺服器執行時踢到鐵板。 PowerShell 有個
-
6
2015年 Google發布了有史以來的第一個與行動裝置友善(Mobile Friendly)的演算法,這套演算法國外業界稱呼為 Mobilegeddon ,演算法的內容簡單來說:你...
-
12
ESP32 連接 I2C 裝置-黑暗執行緒昨天介紹完可以用 C# 寫 ESP32 開發板程式的美妙開源平台 - nanoFramework,我迫不及待想把先前 Arduino C++ 寫的作品移植過來,但光是想接 I2C OLED 顯示...
-
10
迷你方便攜帶、跨平台裝置通用,Seagate One Touch SSD 實測One Touch SSD 針對普羅大眾設計,質感良好、容易攜帶、簡單易用作為主要訴求。
-
19
我們最近幾年幾乎所有案子都導入 CI/CD,把所有能自動化的工作全部都指令化,所以只要公司需要開發時期用的測試機,或是客戶需要安裝主機,通常都可以在 10 分鐘內搞定所有環境與設定。今天這篇文章我要來分享幾個常用的 7-Zi...
-
5
heatshrink A data compression/decompression library for embedded/real-time systems. Key Features: Low memory usage (as low as 50 bytes) It is useful for some cases with less than 50 bytes, and us...
-
18
PostgreSQL 14 支援的 LZ4 壓縮 在 Hacker News 上看到 PostgreSQL 14 新支援的
-
10
軟體模擬 FIDO2 裝置 看到「Virtual FIDO」這個專案,用軟體模擬
-
10
內嵌 .js GZIP 壓縮檔-黑暗執行緒 繼續我的 HTML 文件檔計劃。封裝文件檔的另一項重點是把所有內容打包成單一 .html 檔 (高年級同學可能還記得 I...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK