Blog
Thoughts, ideas, and explorations

SIMD Within a Register: How I Doubled Hash Table Lookup Performance
It started with a simple thought: four bytes in a hash table bucket look just like an integer. Luckily, this one idea led to a deep dive into bit-twiddling and a 2x performance boost.

Practical Bitwise Tricks in Everyday Code
An opinionated and short collection of bitwise tricks that make sense at an average 1x engineer's code.

Cuckoo Filters: Better Than Bloom Filters?
Meet the data structure that refuses trade-offs: identical footprint to Bloom, fewer false positives, and deletion that works without overhead. Grab all three!

Grokking Bloom Filters: Counting Bloom Filter
Bloom filters can't remove elements — unless you let them count.

Grokking Bloom Filters: The Classic Bloom Filter Demystified
How a tiny data structure cuts memory usage by 90% — while helping systems instantly check if data exists.

Fixing C# type pattern-matching
Craving Kotlin's secure pattern matching on sealed classes for your C# code? Discover how the Visitor Pattern can satisfy your longing!

Checking MongoDB Operation Status: A Simple Guide
Learn how to easily check the status of your MongoDB operations with this step-by-step guide.

Unlocking the Power of Generics: Simulating Dictionary Behavior in C#
Do you want to improve performance of caching? Get rid of Dictionary and use just CLR for that!

Benefits of deconstructors for custom types
How and when to use deconstruction syntax-sugar for your custom types in C#

Testing Private Code in C#: Breaking Encapsulation with InternalsVisibleTo Attribute
Learn about the different options available for testing private logic in C# and how the InternalsVisibleTo attribute can help you access internal members without compromising the encapsulation of your code.

Using CallerMemberName for Improved Logging in C#
Learn how to use "magic" attributes in C#, such as CallerFilePath, CallerLineNumber, and CallerMemberName, to retrieve caller information and improve logging functionality.

Shift Your C# Enums
Discover the simple yet powerful technique of using bitwise shift operator in C# Enums, and how it can improve the readability and maintainability of your code.