quinchs / EdgeDB.Net

C# edgedb client
Apache License 2.0
45 stars 3 forks source link

Packet Reader & duplexer improvements #5

Closed quinchs closed 2 years ago

quinchs commented 2 years ago

The packet reader should read off of a span-like system, currently the duplexer reads data onto the heap, preformance can be gained safely by moving the data onto the stack and reading from that.

Note This might involve unsafe code so it should be benchmarked and only considered if the performance gains are worth allowing unsafe code