C vs. C#: racing VLC's Gaussian blur

(martinfinkel.com)

56 points | by martz 3 days ago ago

8 comments

  • teo_zero 41 minutes ago

    Nice article!

    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 19 minutes ago

      It surprises me that it runs on the CPU at all, honestly.

      • ygra 17 minutes ago

        Probably a reflection of the age of that code along with the usefulness of the feature. If no one actually needs the video blurry, then it doesn't matter how efficient the filter is.

  • maxlin 3 hours ago

    Very interesting readup! I have some C# projects I've had in mind to try to compile to AOT. Quite different for complex programs of course, but the perf being very close to C is a great motivator.

    • mihular 43 minutes ago

      Why would you want them in AOT, though? It's great for startup time and native interoperability, but it might be slower in general due to machine specific optimizations.

      • mcraiha 12 minutes ago

        Because of Docker. You want the images to be as small as possible.

  • Brian_K_White 2 hours ago

    Most industries consider 8% a mountain. More than their entire profit margin.

    • Dylan16807 an hour ago

      And 8% milk would taste bad and ruin most recipes.

      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.