Skip to content

Enable direct mode for filter processors#4129

Open
aconchillo wants to merge 2 commits intomainfrom
aleix/enable-direct-mode-filters
Open

Enable direct mode for filter processors#4129
aconchillo wants to merge 2 commits intomainfrom
aleix/enable-direct-mode-filters

Conversation

@aconchillo
Copy link
Copy Markdown
Contributor

@aconchillo aconchillo commented Mar 24, 2026

Summary

  • Enable direct mode on FrameFilter, IdentityFilter, and NullFilter so they bypass the async queue and process frames synchronously, reducing latency for simple pass-through/block operations
  • Also forward **kwargs to parent FrameProcessor in FrameFilter for consistency with the other filters

Testing

  • uv run pytest tests/ — verify no regressions in existing filter tests
  • Verify filters still correctly pass/block frames in a pipeline

🤖 Generated with Claude Code

aconchillo added a commit that referenced this pull request Mar 24, 2026
Copy link
Copy Markdown
Contributor

@markbackman markbackman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Copy Markdown
Contributor

@filipi87 filipi87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. The tests are failing, could it be related to the changes here ?

LGTM!

Enable direct mode on FrameFilter, IdentityFilter, and NullFilter so
they can bypass the async queue and process frames synchronously for
lower latency. Also pass **kwargs through to parent in FrameFilter.
@aconchillo aconchillo force-pushed the aleix/enable-direct-mode-filters branch from a55d4b0 to ac5810b Compare March 26, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants