Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
What is the most resource efficient method of monitoring multiple PRAW streams with a single worker?
Post Flair (click to view more posts with a particular flair)
Post Body

My project has the somewhat unique consideration of trying to use as little CPU and memory resources as possible.

Currently, the worker uses a single main script to start three multiprocessing subprocesses (one for a submission stream, comment stream, and modlog stream). Other subprocesses are also used for time-based non-stream actions not relevant to this question.

Is there a more resource efficient method of running multiple streams at the same time 24/7? Is there a way of reducing any resource usage in between when objects appear in each stream during downtime, or does PRAW already handle this?

As a bonus question, are there any areas of PRAW known for being resource intensive that have workarounds or alternatives?

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
172,495
Link Karma
50,814
Comment Karma
117,135
Profile updated: 19 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago