dao-xyz / borsh-ts

⚡️fast TypeScript implementation of Borsh serialization format
Apache License 2.0
37 stars 2 forks source link

Improve performance with smart call stack depths #19

Open marcus-pousette opened 1 year ago

marcus-pousette commented 1 year ago

with #18 call stack depth is reduced so that huge arrays can be deserialised into. This creates a slight inefficiency for small class deserialisation, where call stack depth is not a problem.

I more performant solution would be: