Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/

## [Unreleased](https://github.com/hynek/structlog/compare/26.1.0...HEAD)

### Changed

- Logging is now slightly faster: `structlog.BoundLoggerBase._process_event` -- which runs on every log call -- no longer unpacks the event keyword arguments into a fresh keyword dict just to merge them into the event dict.
Passing the mapping positionally to `dict.update` is behavior-preserving and avoids that per-call overhead.
[#821](https://github.com/hynek/structlog/pull/821)


## [26.1.0](https://github.com/hynek/structlog/compare/25.5.0...26.1.0) - 2026-06-06

Expand Down
2 changes: 1 addition & 1 deletion src/structlog/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _process_event(
# We're typing it as Any, because processors can return more than an
# EventDict.
event_dict: Any = self._context.copy()
event_dict.update(**event_kw)
event_dict.update(event_kw)

if event is not None:
event_dict["event"] = event
Expand Down