C# Performance: Using const and readonly Effectively
Boost C# performance with const and readonly. Learn when to use each, how the compiler optimizes them, and real benchmarks showing the speed difference.
Article archive
Browse older engineering guides and field notes, page 33.
Continue browsing
Boost C# performance with const and readonly. Learn when to use each, how the compiler optimizes them, and real benchmarks showing the speed difference.
Understand JavaScript hoisting for var, let, const, and functions. Clear examples showing the temporal dead zone, common pitfalls, and best practices.
Use the C# fixed keyword to pin objects in memory and avoid GC relocation. Learn unsafe pointer access, performance gains, and when fixed is appropriate.
Implement the Stochastic Oscillator in JavaScript for crypto and stock scalping. Covers %K, %D calculation, signal generation, and backtesting logic.
Build a bull call and bear put spread calculator in JavaScript. Computes max profit, max loss, breakeven points, and visualizes the payoff diagram.
Price options using forward implied volatility in JavaScript. Covers term structure interpolation, vol surface modeling, and Black-Scholes adjustments.