Skip to content

πŸš€πŸš€πŸš€ Gota-go-fast inline light primitive serialization

License

0xF6/inline-serialization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✨ inline-serialization ✨

Telegram

Structure

Serialize(12f) -> "f2012"

- type header -
f  - float
20 - 32 in hex
- body -
12 - value

Usage

var result = FastSerializer.Serialize("test-string"); // s00test-string
var result = FastSerializer.Serialize(12f); // f2012

Benchmark

// * Summary *

BenchmarkDotNet=v0.12.1, OS=Windows 10.0.20226
Intel Core i7-8650U CPU 1.90GHz (Kaby Lake R), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.100-rc.1.20452.10
  [Host]     : .NET Core 3.1.7 (CoreCLR 4.700.20.36602, CoreFX 4.700.20.37001), X64 RyuJIT  [AttachedDebugger]
  DefaultJob : .NET Core 3.1.7 (CoreCLR 4.700.20.36602, CoreFX 4.700.20.37001), X64 RyuJIT


|    Method |     Mean |     Error |    StdDev |
|---------- |---------:|----------:|----------:|
| InlineSer | 1.646 us | 0.0327 us | 0.0468 us |
|       Bin | 7.245 us | 0.1425 us | 0.2341 us |
|      Json | 1.689 us | 0.0297 us | 0.0318 us |

About

πŸš€πŸš€πŸš€ Gota-go-fast inline light primitive serialization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages