re-java-2-times-faster-than-c
By blackedout01
clean_code_example
Example that Clean Code leads to bad performance. (by nan0S)
re-java-2-times-faster-than-c | clean_code_example | |
---|---|---|
1 | 1 | |
1 | 0 | |
- | - | |
1.9 | 4.5 | |
about 1 year ago | 9 months ago | |
C | C++ | |
GNU General Public License v3.0 only | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
re-java-2-times-faster-than-c
Posts with mentions or reviews of re-java-2-times-faster-than-c.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-28.
-
"Clean" Code, Horrible Performance
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
Posts with mentions or reviews of clean_code_example.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-28.
-
"Clean" Code, Horrible 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.
What are some alternatives?
When comparing re-java-2-times-faster-than-c and clean_code_example you can also consider the following projects:
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.