From a757198b2ee03af419f75e98ea0e2842430b8579 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 6 Apr 2025 17:29:56 +0300 Subject: no it is not really faster as shown in a benchmark --- internal/eventloop.go | 1 - 1 file changed, 1 deletion(-) (limited to 'internal/eventloop.go') diff --git a/internal/eventloop.go b/internal/eventloop.go index 94edb3b..92f2785 100644 --- a/internal/eventloop.go +++ b/internal/eventloop.go @@ -129,7 +129,6 @@ func (e *eventLoop) events(ctx context.Context, rawCh <-chan []byte) <-chan *eve func (e *eventLoop) processRawEvent(raw []byte, ch chan<- *event.Pair) { e.numTracepoints++ - // TODO: Would a map be faster than a big switch-case statement? Write a benchmark. switch EventType(raw[0]) { case ENTER_OPEN_EVENT: if ev, ok := e.filter.openEvent(NewOpenEvent(raw)); ok { -- cgit v1.2.3