passepartout-apple/Packages/PassepartoutOpenVPNOpenSSL/Tests
Davide a13cc3474c
OpenVPN: Restore and improve negotiation speed (#1095)
The new OpenVPN parser was painfully slow due to allocating
NSRegularExpression zillion times, which resulted in poor performance
(4x time!) when processing long PUSH_REPLY messages. This is a hard
regression from v2 because [TunnelKit created the regexes
statically](339b509ddf/Sources/TunnelKitOpenVPNCore/ConfigurationParser.swift (L42)).

Solution: pre-allocate the regular expressions at parser creation time.

Optimize long fragmented replies further by catching PUSH_REPLY
continuations early, rather than parsing line by line.
2025-01-22 22:33:39 +01:00
..
CPassepartoutCryptoOpenSSLTests Update copyright 2025-01-15 20:22:52 +01:00
PassepartoutOpenVPNOpenSSLTests OpenVPN: Restore and improve negotiation speed (#1095) 2025-01-22 22:33:39 +01:00