Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Evaluate performance impact of `deprecated` decorator in hot codepath

Open
#116 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
performance

Research direction

Read the referenced section of airbyte_cdk/sources/streams/core.py, lines 434-444, and the PEP 702 backwards-compatibility discussion first. Evaluate whether the method-level @deprecated decorator has an acceptable performance impact in this hot path while avoiding a warning for the whole class; completion should record that decision and its performance evidence.

Written by the indexing model from the issue text.

Description

There is one deprecated decorator in the hot code path which was initially moved to the class level to reduce performance impact, and which I've moved back to the method level but commented-out to avoid any performance impact. Since migrating from the Deprecated third party library to the PEP 702 native support for @deprecated decorators, we might be in a better situation now with performance, but I didn't want to take a risk. I also didn't want to trigger a deprecated warning on the whole class if only one method is deprecated.

https://github.com/airbytehq/airbyte-python-cdk/blob/bd2e5affd196b2f36dfc0fb8bbbae07771dde188/airbyte_cdk/sources/streams/core.py#L434-L444

Dominant language
Python
Stars
26
Forks
53
Avg merge
7d 2h
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from airbytehq/airbyte-python-cdk

All issues in airbytehq/airbyte-python-cdk

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.