Mesh
c-examples
Our great sponsors
Mesh | c-examples | |
---|---|---|
6 | 4 | |
1,705 | 4 | |
0.8% | - | |
3.7 | 9.1 | |
12 days ago | 14 days ago | |
C++ | C | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
Mesh
-
Spotting and Avoiding Heap Fragmentation in Rust Apps
I'm not sure if it's widely used, but Mesh is a C/C++ library that can recover from memory fragmentation. The YouTube video in the README is a great watch.
-
Compacting the Uncompactable: The Mesh Compacting Memory Allocator
From 2019. Here it is on Github: https://github.com/plasma-umass/Mesh
-
Bizarre memory leak caused by tokio runtime
With everyone talking about memory fragmentation, I'd like to mention Mesh, an allocator that can compact aka defrag the heap without any help from the program or compiler. Here's the talk explaining it, "Compacting the Uncompactable" by Bobby Powers.
- Reference Count, Don't Garbage Collect
-
How do applications request for RAM from the CPU?
Mesh by Bobby Powers
c-examples
-
Benchmarking 20 programming languages on N-queens and matrix multiplication
So I actually tested your code: https://gist.github.com/bjourne/c2d0db48b2e50aaadf884e4450c6...
On my machine single-threaded OpenBLAS multiplies two single precision 4096x4096 matrices in 0.95 seconds. Your code takes over 30 seconds. For comparison, my own matrix multiplication code (https://github.com/bjourne/c-examples/blob/master/libraries/...) run in single-threaded mode takes 0.89 seconds. Which actually beats OpenBLAS, but OpenBLAS retakes the lead for larger arrays when multi-threading is added.
- Julia and Mojo (Modular) Mandelbrot Benchmark
- Reference Count, Don't Garbage Collect
What are some alternatives?
jemalloc
ixy-languages - A high-speed network driver written in C, Rust, C++, Go, C#, Java, OCaml, Haskell, Swift, Javascript, and Python
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
mark-sweep - A simple mark-sweep garbage collector in C
snmalloc - Message passing based allocator
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
memory - STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
racket - The Racket repository
plb2 - A programming language benchmark
rmm - RAPIDS Memory Manager
array - C++ multidimensional arrays in the spirit of the STL