Antão AlmadaBuilding Custom Iterators with ‘yield’ in C#Yield is a simple keyword but a powerful mechanism provided by the C# compiler that implements state machines.Sep 15, 2023Sep 15, 2023
Antão AlmadaLINQ Internals: Speed OptimizationsBehind the elegant facade of LINQ lies a meticulously engineered core designed for more than just simplicity. This article delves into the…Aug 29, 2023Aug 29, 2023
Antão AlmadaEfficient Data Processing: Leveraging C#’s foreach LoopEDIT: Added “Return items by reference” sectionAug 29, 2023Aug 29, 2023
Antão AlmadaImmutableArray<T> iteration performance in C#‘foreach’ on an ImmutableArray<T> is surprisingly fast. Equivalent to an array. Here I explain how is this possible.Jul 31, 2023Jul 31, 2023
Antão Almada“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…Jul 20, 2023Jul 20, 2023
Antão AlmadaUsing “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…Dec 7, 2022Dec 7, 2022
Antão AlmadaUsing “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…Dec 7, 20221Dec 7, 20221
Antão AlmadaUsing “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…Dec 6, 2022Dec 6, 2022