corert
.NET port of LMAX Disruptor
Our great sponsors
corert | .NET port of LMAX Disruptor | |
---|---|---|
8 | 2 | |
2,863 | 1,164 | |
- | 1.5% | |
8.3 | 7.2 | |
over 3 years ago | 2 months ago | |
C# | C# | |
GNU General Public License v3.0 or later | 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.
corert
-
Native AOT Overview
An explanation of the problem: https://github.com/dotnet/corert/blob/master/Documentation/u...
-
Thinking about zero-allocation parsing.
Memory was not really designed for having lots of instances of it and doing intensive computations/searches on the instances. The reason for it is that Memory.Span property is actually quite expensive to call. Memory is a union type for storing strings, arrays, and even handles to native memory. Every time you construct it , slice it, or retrieve it's span, lost of machinery related to this union has to run. For example see the source for the Memory.Span property: https://github.com/dotnet/corert/blob/master/src/System.Private.CoreLib/shared/System/Memory.cs#L285.
-
Is there any good obfuscator or obfuscation algorithm that makes following the logic difficult?
For earlier versions, try https://github.com/dotnet/corert
- What are the features you're looking forward to in the next version of Fsharp?
-
Preview Features in .NET 6 - Generic Math
Yeah I know it's slower on its own, but I was sure it was handled as a faster intrinsic by the runtime. Went to double check and realized I was actually mixing things up with what CoreRT did (see here) but I guess it doesn't apply to CoreCLR. Would be surprised if there weren't any specific optimizations for this with .NET 6+ though, or at the very least with NativeAOT (given they've been porting some bits over from CoreRT and .NET Native too). Will need to go gather more info on this, as it's pretty interesting 🙂
-
Awesome .NET Performance
> AOT compilation? I'll believe it when they'll release it, until then, it's all speculation
Devil's in the details, but there -is- AOT compilation[0]. While it hasn't been released as an official product, it has been used for a few projects including a commercial game [1]. And yes, they're looking into the next steps to make it a 'released' thing.[2]
[0] - https://github.com/dotnet/corert/
[1] - https://github.com/dotnet/corert/issues/8233#issuecomment-65...
[2] - https://github.com/dotnet/runtimelab/tree/feature/NativeAOT
-
What the F#
That is a well known issue, also what prevented F# to be properly used in .NET Native.
https://github.com/dotnet/corert/issues/5780#issuecomment-40...
-
"Low Level" questions about C# (and .Net)
CoreRT
.NET port of LMAX Disruptor
-
Is there a library with a fixed-sized collection, where newly added data is inserted at the start, but if the collection's capacity has reached the size, older data is discarded (but it doesn't move any of the elements around), and that you can also index to?
You could consider looking at https://github.com/disruptor-net/Disruptor-net.
-
Awesome .NET Performance
I would look at adding LMAX Disruptor to this list. It can run circles around stuff scattered across TPL usages. Doesnt fit every use case, but its really incredible when it does fit. I was able to build a toy project that handles millions of user events per second on a single thread using this.
Getting your application aligned with the NUMA model makes way more difference in performance than anything else.
https://github.com/disruptor-net/Disruptor-net
What are some alternatives?
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
Akka.net - Canonical actor model implementation for .NET with local + distributed actors in C# and F#.
awesome-dot-net-performance - A curated list of awesome .NET Performance books, courses, trainings, conference talks, blogs and most inspiring open source contributors. Inspired by awesome-... stuff.
Zebus - A lightweight Peer to Peer Service Bus
obfuscar - Open source obfuscation tool for .NET assemblies
protoactor-dotnet - Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
fsharp-companies - Community curated list of companies that use F#
Orleankka - Functional API for Microsoft Orleans http://orleanscontrib.github.io/Orleankka
elmish - Elm-like abstractions for F# apps
FsShelter - Author Apache Storm topologies with F# using statically-typed streams
Vrmac - Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4.
store-modular-monolith - 🛒 Implementing an “online store” modular monolith application with domain-driven design and CQRS with using in-memory message broker based on .Net Core.