"Clean" Code, Horrible Performance

This page summarizes the projects mentioned and recommended in the original post on /r/programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Windows Terminal

    The new Windows Terminal and the original Windows console host, all in the same place!

  • You should read the issue thread linked by /u/CptCap then. When he first pointed the issue, he was actually trying to help. The main reason he quit the thread in the end was because the maintainer have clearly shown they didn't know what they were talking about. Let me cherry pick one of the last replies from a maintainer:

  • scratch-www

    Standalone web client for Scratch

  • "A tool doesn't encourage mess", it's how and when you use it. You really must've started only recently, because otherwise I must assume that you are really bad at your job. Maybe try a language that will help you not make a mess; and leave programming to the professionals? When you learn to appreciate the tools you are given, come back for a mature discussion.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • StackExchange Redis

    General purpose redis client

  • Yet their high performing custom redis client code or Dapper is as clean as could be.

  • Dapper

    Dapper - a simple object mapper for .Net

  • Yet their high performing custom redis client code or Dapper is as clean as could be.

  • java-2-times-faster-than-c

    An inquiry into nondogmatic software development. An experiment showing double performance of the code running on JVM comparing to equivalent native C code.

  • As far as the absolute performance you have this sort of effect too. https://github.com/xemantic/java-2-times-faster-than-c

  • Like I said, your "Java 2x as fast as C" example is in no way bizarre. Because they use different memory management algorithms. If you consider every instruction they are different algorithms. On a surface level they are the same. But on a surface level you can replace the memory management algorithm. If you do that unsurprisingly Java becomes 2x slower than C. If you are interested https://github.com/blackedout01/re-java-2-times-faster-than-c

  • clean_code_example

    Example that Clean Code leads to bad performance.

  • Here you go - tiny repo with the tests. I didn't include SIMD example, because I've never done any SIMD stuff. For all the other variants I see pretty much the same improvements as he did.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts