Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization: Don't spin up a thread pool for a single notification #846

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

YoRyan
Copy link
Sponsor Contributor

@YoRyan YoRyan commented Mar 1, 2023

Description:

Related issue (if applicable): N/A

A quick optimization: If we're just sending a single notification, there's no need to spin up a thread pool. We can just send it like we would sequentially.

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use flake8)
  • 100% test coverage

Testing

Anyone can help test this source code as follows:

pytest --cov=apprise

@caronc
Copy link
Owner

caronc commented Mar 1, 2023

I love it, thank you! Code looks good - merging

@caronc caronc merged commit 2057107 into caronc:master Mar 1, 2023
@YoRyan YoRyan deleted the no-threadpool-for-one-notification branch March 1, 2023 20:21
phea pushed a commit to phea/apprise that referenced this pull request Mar 7, 2023
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.

None yet

2 participants