2 ms·
First, it's not about the time spent compiling. And also not a scheduling problem. Secondly, the eBPF constraints put the language even lower in the hierarchy
by the8472 10y ago
First, it's not about the time spent compiling. And also not a scheduling problem.
Secondly, the eBPF constraints put the language even lower in the hierarchy than regular expressions.
- andrewflnr 10y agoEven lower than "proper" regular expressions, i.e. guaranteed linear time?
- the8472 10y agoYes, that's the intent. The code is executed inline when filtering packets, instrumenting system calls and to prefilter kernel probes for user space. It has to be really fast, i.e. execute in a bounded amount of time.