Closed ThadHouse closed 8 years ago
I did some performance testing on this, and it actually does help with a lot of keys, as allocations are reduced immensely while sending data.
This way still had the performance benefits, but no unsafe code. So I like this better.
@@ master #36 diff @@
==========================================
Files 40 42 +2
Lines 6823 6914 +91
Methods 803 817 +14
Messages 0 0
Branches 899 900 +1
==========================================
+ Hits 4370 4394 +24
- Misses 2184 2250 +66
- Partials 269 270 +1
Powered by Codecov. Last update 6c62ba0...5ab4a1e
Previously always involved allocations, which was slow and had a lot of memory allocations. New code uses unsafe code, but is MUCH faster.