writeType() vs lookup table for net serialization
🌙 Lua•Updated 2 days ago•0 views
Probably similar cost - a lookup table indexed by type works fine; note coroutine-based writers must return true at the end or they error on completion.
Is writeType() more expensive than a lookup table of write functions
Probably similar cost - a lookup table indexed by type works fine; note coroutine-based writers must return true at the end or they error on completion.