I always assumed any decent runtime/compiler takes care of such optimisations, and usually leave such things to JDK in my Java code. Is that really not the case?
C vs. C#: racing VLC's Gaussian blur (martinfinkel.com)
theanonymousone 8 minutes ago
teo_zero 2 hours ago
What surprises me is that the original VLC filter does not use SIMD. Sometimes I wonder why I spent my money on a "modern" CPU with a lot of new features that stay completely ignored by most software I run every day.
fenwick67 2 hours ago
ygra 2 hours ago
brookman64k 2 hours ago
bschwindHN 2 hours ago
See here:
https://aras-p.info/blog/2026/10/01/Fast-blur-with-animated-...
anderskaseorg 2 hours ago
schobi an hour ago
Then you can start approximating - for large sigmas just using every 10th pixel would work. Looks like MS Teams background blur is doing this, you get a blurry background with aliasing - yay!
Once you add SIMD variants and look at CPU caching behaviour, you build versions for different CPUs. Instead of filtering the whole image for one dimension you might finish blocks locally.
You've now got a dozen variants that need testing and maintenance on different architectures.
I'm reminded of my colleague preaching requirements engineering - what was the goal gain?
anderskaseorg 8 minutes ago
hn_submit an hour ago
maxlin 5 hours ago
mihular 2 hours ago
mcraiha 2 hours ago
littlecranky67 7 minutes ago
Brian_K_White 3 hours ago
Dylan16807 3 hours ago
I don't know why we're comparing completely different categories of number though. In a business context getting a project done a few percent faster, or more accurately one step done a few percent faster, barely affects revenue at all. And saving CPU time matters even less.