Antão Almada·Sep 15, 2023Building Custom Iterators with ‘yield’ in C#Yield is a simple keyword but a powerful mechanism provided by the C# compiler that implements state machines.
Antão Almada·Aug 29, 2023LINQ Internals: Speed OptimizationsBehind the elegant facade of LINQ lies a meticulously engineered core designed for more than just simplicity. This article delves into the…
Antão Almada·Aug 29, 2023Efficient Data Processing: Leveraging C#’s foreach LoopEDIT: Added “Return items by reference” section
Antão Almada·Jul 31, 2023ImmutableArray<T> iteration performance in C#‘foreach’ on an ImmutableArray<T> is surprisingly fast. Equivalent to an array. Here I explain how is this possible.
Antão Almada·Jul 20, 2023“A 12 % improvement, easily obtained, is never considered marginal” — Donald KnuthI’ve been writing articles about performance in .NET for several years but I frequently find in the comments the famous quote from the…
Antão Almada·Jul 7, 2023Single Instruction, Multiple Data (SIMD) in .NETWhat is SIMD?A response icon4A response icon4
Antão Almada·Dec 7, 2022Using “React Query” to mutate smart contracts (part 2)NOTE: This series of articles use TypeChain to make strongly-typed calls to Ethereum. Please check its documentation and discussion board…
Antão Almada·Dec 7, 2022Using “React Query” to mutate smart contracts (part 1)In previous posts I explained how React Query can be used to query smart contracts, that is, to perform read calls. Now I’m going to…A response icon1A response icon1
Antão Almada·Dec 6, 2022Using “React Query” to query smart contracts (part 3)Wallets that support multiple accounts and multiple blockchains, like MetaMask, make it very easy for a user to change active account and…