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

Update to rely on HTML table rendering instead of images #32

Merged
merged 5 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions _posts/2024-01-22-Python-Memory-Management-and-Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,46 +147,58 @@ The stack can be thought of as a {% include icon.html icon="fa-solid fa-map" %}
The heap can be imagined of as a {% include icon.html icon="fa-solid fa-warehouse" %} "warehouse" store (or remove) things used as part of the stack "roadmap".
Please see [The Linux Programming Interface by Michael Kerrisk, Chapter 6.3: Memory Layout of a Process](https://learning.oreilly.com/library/view/the-linux-programming/9781593272203/xhtml/ch06.xhtml#ch06lev1sec03) for more information about processes.


<table>
<tr><th colspan="2">Memory Blocks</th></tr>
<tr>
<td>

<div>
<strong>A.)</strong> All memory blocks available.

<table>
<tr><td>Block</td><td>Block</td><td>Block</td></tr>
</table>
</div>

</td>
<td>

<div>
<strong>B.)</strong> Some memory blocks in use.


<table>
<tr><td style="background:#86EFAC;">Block</td><td style="background:#86EFAC;">Block</td><td>Block</td></tr>
</table>
</div>

</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;font-weight:bold;">Practical analogy</td>
</tr>
<tr>
<td>

<div>
<strong>C.)</strong> You have limited boxes to hold things.

<table>
<tr><td>📦</td><td>📦</td><td>📦</td></tr>
</table>
</div>

</td>
<td>

<div>
<strong>D.)</strong> Two boxes are used, the other remains empty (ready for use).

<table>
<tr><td style="background:#86EFAC;">📦</td><td style="background:#86EFAC;">📦</td><td>📦</td></tr>
</table>
</div>

</td>
</tr>
</table>
Expand Down Expand Up @@ -507,7 +519,6 @@ See below for some notable examples of additional memory allocation possibilitie

### Python Reference Counting


<table>
<tr><th>Processed line of code</th><th>Reference count</th></tr>
<tr>
Expand Down
Binary file removed images/memory_blocks_examples.png
Binary file not shown.
Binary file removed images/python_reference_counting_example.png
Binary file not shown.
Loading