realpython / realpython/materials

asyncio on mac m1

Open
#368 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
5.2k
Forks
5.3k
Avg merge
4d 10h
Merged PRs (30d)
10

Description

Hi.
I very much enjoyed your tutorial on concurrency in python.
I tested all of the examples you gave. One in particular irks me:
The async io-bound example is (by far!) the slowest on my mac m1 (10 cores) os 13.1.
Not sure why but it is significantly slower than the others.

I'd like to know if there is something in your code that needs to be tweaked
as I have an application I'm considering using async for part of.

Any idea why this would be ?

Thanks!

Using python 3.9.13 for this

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the async io-bound example from the tutorial materials and run it under Python 3.9.13 on macOS 13.1, comparing its timing with the other examples. Done means determining whether the slowdown is reproducible and documenting the cause or any required tweak.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.