MENU

Fun & Interesting

Boosting the performance by being unique in Go 1.23!

Flo Woelki 6,925 8 months ago
Video Not Working? Fix It Now

Understanding the unique module in Go 1.23 is an absolute must because it will improve your performance! While this module is interesting, there have been some changes with sorting and timers as well, so feel free to check out this video: https://youtu.be/MVx_b-2TuLY 📝 Description Go 1.23 is here, and it's bringing some exciting changes! In this video, we'll dive deep into one of the most significant additions: the new unique package. This powerful module offers a significant performance boost for critical comparisons and allows you to canonicalize your data efficiently. Here's what we'll cover: • Introduction to the unique package and its capabilities • Understanding handles and their role in optimizing comparisons • Real-world benchmarks comparing traditional string comparisons to unique.Handle • A detailed look at memory optimization through canonicalization • Best practices and when to use (or not use) the unique package ⏳ Timestamps: 00:00 - Introduction 01:40 - Benchmarking using strings 06:03 - Benchmarking using structs 07:43 - Memory while using the unique module 12:03 - When not to use this module 12:41 - Outro 👋 Hey there! If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using emojis and paper-based animations (so have a look for that if you want to find my videos). 📨 Support and Connect! Buy me a coffee: https://www.buymeacoffee.com/florianwoelki Become a member. https://www.youtube.com/@FloWoelki/membership Discord: https://discord.gg/TnA7drJ Instagram: https://www.instagram.com/flowydev/ LinkedIn: https://www.linkedin.com/in/florian-woelki/ TikTok: https://www.tiktok.com/@florianwoelki GitHub: https://github.com/FlorianWoelki #golang #go #go1.23 #unique

Comment