Commit 8eb9d81
authored
wasm: optimize lookup in control plane (#57901)
In a real world environment with many WasmPlugins, we saw about 10% of
CPU usage on the lookup MatchListener. 1/3 of these is spent on HTTP
lookups, while 2/3 on TCP lookups. However, the cluster only has HTTP
wasm plugins.
By flipping the condition to filter by the fast check (MatchType) we can
avoid the expensive MatchListener calls.1 parent 1dd3e10 commit 8eb9d81
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
2207 | | - | |
| 2207 | + | |
2208 | 2208 | | |
2209 | 2209 | | |
2210 | 2210 | | |
| |||
0 commit comments