Skip to content

Commit

Permalink
PEP 774: Add a footnote with calculation details (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
savannahostrowski authored Feb 18, 2025
1 parent d99042d commit cb14503
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion peps/pep-0774.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ difference between the actual commits and the same commits with stencils added
amounts to a difference of 0.03 MB per stencil file. This is a small increase in
the context of the overall repository size, which has grown by 2.55 MB in the
same time period. For six stencil files, this amounts to an upper bound of 0.18 MB.
The current total size of the stencil files for all six platforms is 7.2 MB.
The current total size of the stencil files for all six platforms is 7.2 MB. [#stencil_calc]_

These stencils could become larger in the future with changes to register
allocation, which would introduce 5-6 variants per instruction in each stencil
Expand Down Expand Up @@ -252,6 +252,17 @@ challenges of accessibility and simplicity, and fails to eliminate the
dependency which was deemed undesirable at the Python Core Developer Sprint in
the fall (the impetus for this PEP), making it a poor long-term solution.

Footnotes
=========

.. [#stencil_calc] Calculated using this `Gist
<https://gist.github.com/savannahostrowski/c66ac62267e626d82aafa27939468e30>`__.
This script replays commits for roughly the past 90 days, generates the
stencil file for the platform for each commit, and then commits the stencil
file into a copy of the repository if they change. The calculation compares
the before and after of the repository after running ``git gc --aggressive``,
which is used to pack the repo (similar to what GitHub does on repo clone).
Copyright
=========

Expand Down

0 comments on commit cb14503

Please sign in to comment.