Multipart 2.2.0
New:
- Improved the multipart parsing performance.
Before
Time to parse a multipart message with the given size. Measured on a 4-core 2.6 GHz Intel Core i7, macOS 10.13.3, Swift 4.0.3:
Message Size | Debug Build | Release Build |
---|---|---|
100 KB | 0.36 s | 0.16 s |
200 KB | 1.24 s | 0.58 s |
400 KB | 4.56 s | 2.21 s |
After
Message Size | Debug Build | Speedup | Release Build | Speedup |
---|---|---|---|---|
100 KB | 0.09 s | 4× | 0.027 s | 6× |
200 KB | 0.19 s | 6.5× | 0.06 s | 10× |
400 KB | 0.37 s | 12× | 0.11 s | 20× |