Files
swift-nio/Sources
Johannes WeissandGeorge Barnett 3eea09220e do not waste time when metrics delegate is not set (#3441)
### Motivation:

Unfortunately, even if no metics delegate has been configured,
significant work is being done _each EL tick_. Concretely:

- 2 `NIODealine.now()` calls which are expensive particularly on some
hypervisors (may cause a VMEXIT!)
- Some unnecessary calculations

### Modifications:

- Only perform the metrics delegate work if a delegate has actually been
set

### Result:

If no delegate is set, each EL tick will now be faster.

Co-authored-by: George Barnett <gbarnett@apple.com>
2025-11-20 16:13:15 +00:00
..
2024-09-12 13:18:25 +01:00
2025-10-06 10:58:33 +01:00
2025-10-06 10:58:33 +01:00
2025-05-07 12:24:44 +00:00
2025-05-07 12:24:44 +00:00