Rutherther / NosSmooth

Nostale bot library written in C#. May describe the current state of the game/character from packets. Multiple sources available for capturing the packets from running game.
MIT License
7 stars 3 forks source link

Rewrite packets string enumerator to use spans, add Injector for .NET 5+ #14

Closed Rutherther closed 2 years ago

Rutherther commented 2 years ago
Before Span
|              Method |     Mean |     Error |    StdDev |   Median |
|-------------------- |---------:|----------:|----------:|---------:|
|   SerializeFcPacket | 3.121 us | 0.0301 us | 0.0267 us | 3.119 us |
| DeserializeFcPacket | 4.737 us | 0.0941 us | 0.2362 us | 4.830 us |

Using span
|              Method |     Mean |     Error |    StdDev |
|-------------------- |---------:|----------:|----------:|
|   SerializeFcPacket | 3.345 us | 0.0669 us | 0.1305 us |
| DeserializeFcPacket | 2.817 us | 0.0511 us | 0.0733 us |
Rutherther commented 2 years ago

This can be merged after I figure out how to export functions from .NET 5 and 6 dlls. (since this depends on net standard 2.1)