Skip to content

Vertex-Tools/Avian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avian Avian Framework

License: MIT C# Performance

Avian is a high-performance, zero-allocation event bus framework for C#. Designed for scenarios where latency and memory predictability are critical—such as game servers and real-time systems—Avian leverages compile-time code generation to eliminate runtime overhead.


🏗️ Architecture Overview

Component Responsibility
Avian.Core Memory management (RingBuffer, Pools)
Avian.Event Event brokering & Dispatching
Avian.SourceGen Compile-time optimization (Roslyn)

⚡ Why Avian?

"Don't let the Garbage Collector hold you back."

  • Zero-Allocation: Built for high-frequency loops. No hidden new objects.
  • Compile-Time Magic: Uses Roslyn Source Generators to write the "bridge code" for you.
  • Predictable: Full control over dispatching via manual Execute() cycles.

🛠️ Performance Comparison

Feature MediatR Avian
Reflection Yes No
Allocation High Zero
Runtime Speed Moderate Maximum

🚀 Quick Start

1. Define your event

using Avian;

public struct PlayerMoveEvent : IEvent 
{ 
    public int X, Y; 
}

About

High-performance, zero-allocation event framework for C#. Features compile-time optimization via Source Generators for ultra-low latency applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages