<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Algorithm - Danh mục - NZQIRC</title><link>https://nzqirc.xyz/categories/algorithm/</link><description>Algorithm - Danh mục - NZQIRC</description><generator>Hugo -- gohugo.io</generator><language>vi</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Wed, 06 Nov 2024 15:45:35 +0700</lastBuildDate><atom:link href="https://nzqirc.xyz/categories/algorithm/" rel="self" type="application/rss+xml"/><item><title>Swissmap</title><link>https://nzqirc.xyz/posts/computer-science/swissmap/</link><pubDate>Wed, 06 Nov 2024 15:45:35 +0700</pubDate><author>Du Mã</author><guid>https://nzqirc.xyz/posts/computer-science/swissmap/</guid><description><![CDATA[
<p><a href="https://go-review.googlesource.com/c/go/&#43;/594597" target="_blank" rel="noopener noreffer ">Go 1.24 mặc định sẽ dùng SwissMap</a>, vậy SwissMap là gì? Tại sao nó lại quan trọng?</p>
<!-- ## English Version -->
<!-- SwissMap and SwissTable offer an improved solution for high-performance, memory-efficient hash tables in Golang. -->
<p>SwissMap và SwissTable cung cấp giải pháp cải tiến cho bảng băm hiệu năng cao, tiết kiệm bộ nhớ trong Golang.</p>
<!-- ## Original Problem -->
<!-- In many applications, hash tables play a critical role, especially where rapid data access and minimal memory usage are essential. However, Golang’s built-in map, while convenient for general use, consumes more memory and may not provide the speed required in performance-critical scenarios. -->
<h2 id="vấn-đề-ban-đầu">Vấn đề ban đầu</h2>
<p>Trong nhiều ứng dụng, bảng băm (hash table) đóng vai trò quan trọng, đặc biệt khi cần truy cập dữ liệu với tốc độ cao sử dụng bộ nhớ tối thiểu. Tuy nhiên, bảng băm tích hợp sẵn (built-in map) của Golang, mặc dù thuận tiện cho các trường hợp phổ thông, nó lại tiêu tốn nhiều bộ nhớ hơn và có thể không đủ nhanh cho các tình huống yêu cầu hiệu suất cao (ví dụ DoltDB).</p>]]></description></item></channel></rss>