mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-31 12:49:22 +00:00
PreMatch and full match phases each created a fresh InboundContext, causing process search (expensive OS syscalls) to run twice per connection. Use a freelru ShardedLRU cache with 200ms TTL to serve the second lookup from cache. |
||
|---|---|---|
| .. | ||
| rule | ||
| conn.go | ||
| dns.go | ||
| network.go | ||
| platform_searcher.go | ||
| process_cache.go | ||
| route.go | ||
| router.go | ||
| rule_conds.go | ||