Siavash Sameni
e6cecc7bd8
Perf: cache EC-SRP5 constants, optimize TCP I/O, fix LDAP security
- Cache Curve25519 constants (P, CURVE_ORDER, WEIERSTRASS_A) with LazyLock
eliminating ~768 BigUint heap allocations per auth handshake
- Optimize scalar_mul to use bit() instead of clone+shift
- Set TCP socket buffers to 4MB via socket2 (matching UDP path)
- Increase TCP RX buffers from 64KB to 256KB
- Use 256KB writes at unlimited rate (vs 32KB) reducing syscall overhead
- Fix LDAP filter injection with RFC 4515 escaping
- Fix unwrap panic on empty LDAP search results
Benchmarked on WiFi against MikroTik:
TCP Download: +67% (19.7 → 32.9 Mbps avg)
TCP Upload: +87% (3.6 → 6.7 Mbps avg)
Local CPU: lower across all tests (29-36% vs 32-58%)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 10:06:21 +04:00
..
2026-04-01 14:44:57 +04:00
2026-04-18 10:06:21 +04:00
2026-03-31 15:40:33 +04:00
2026-04-01 19:57:18 +04:00
2026-04-18 10:06:21 +04:00
2026-04-02 08:34:21 +04:00
2026-04-01 11:08:11 +04:00
2026-04-18 10:06:21 +04:00
2026-04-01 10:53:00 +04:00
2026-04-01 11:08:11 +04:00
2026-04-01 11:08:11 +04:00
2026-04-18 10:06:21 +04:00
2026-04-01 09:23:11 +04:00