Andrushika commented on code in PR #72567:
URL: https://github.com/apache/airflow/pull/72567#discussion_r4024694748


##########
dev/breeze/doc/03_developer_tasks.rst:
##########
@@ -399,6 +399,15 @@ in ``--from-ref`` and ``--to-ref`` flags.
     If the cache gets broken, run ``breeze down --cleanup-mypy-cache`` which 
wipes the docker
     volume and every per-hook ``.build/mypy-venvs/`` and 
``.build/mypy-caches/`` directory.
 
+.. note::
+
+    Python bytecode (``.pyc``) compiled from the mounted sources inside the 
container is written
+    to the ``airflow-pycache-volume`` docker volume (``PYTHONPYCACHEPREFIX``) 
rather than next to
+    the sources, so it never shows up in your checkout but survives between 
``breeze shell`` and
+    ``breeze start-airflow`` runs. This noticeably speeds up every ``airflow`` 
command and component
+    start-up, especially on macOS where reading sources through the bind mount 
is slow.
+    Run ``breeze down --cleanup-pycache`` to wipe the volume.

Review Comment:
   Thanks! I applied the doc suggestion. I’ll keep the shared volume as-is in 
this PR since it is correct. If cross-worktree invalidation becomes noticeable, 
I can benchmark it and handle the isolation in a separate PR.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to