micro-optimization

2 articles
sort: new top best
clear filter
0 3/10

Developer optimizes the asin() function in a ray tracer using Padé approximants combined with half-angle transforms to achieve faster computation with lower error across the full input range, replacing both naive Taylor series approximations and reliance on std::asin().

PSRayTracing Ray Tracing in One Weekend
16bpp.net · def-pri-pub · 3 days ago · details · hn
0 3/10

This article argues that concerns about function call overhead in Rust async code are often unfounded, demonstrating that modern compilers inline small functions in release builds, making indirection cost negligible compared to actual I/O and system-level operations. The author emphasizes that code readability and maintainability should take priority over micro-optimizations, and provides concrete benchmarking and profiling techniques to measure real performance impact.

Rust Criterion valgrind perf flamegraph dtrace Instruments
blog.sebastiansastre.co · sebastianconcpt · 5 days ago · details · hn