<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Daniel's Tech Blog</title><link>https://tech.daniellbastos.com.br/tags/python/</link><description>Recent content in Python on Daniel's Tech Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 05 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tech.daniellbastos.com.br/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>tottime = 0 doesn’t mean fast</title><link>https://tech.daniellbastos.com.br/posts/tottime-zero-doesnt-mean-fast/</link><pubDate>Sun, 05 Apr 2026 00:00:00 +0000</pubDate><guid>https://tech.daniellbastos.com.br/posts/tottime-zero-doesnt-mean-fast/</guid><description>&lt;p&gt;Adam Johnson released a new library recently called &lt;a href="https://adamj.eu/tech/2026/04/03/python-introducing-profiling-explorer/"&gt;profiling-explorer&lt;/a&gt;. A browser-based interface for &lt;code&gt;.pstats&lt;/code&gt; files, the binary output that &lt;code&gt;cProfile&lt;/code&gt; writes to disk when you profile Python code. Fancy and friendly UI, kind of tool that makes a familiar workflow suddenly feel less like archaeology.&lt;/p&gt;
&lt;p&gt;Looking at it triggered a question that had nothing to do with the tool itself. What&amp;rsquo;s actually in there the &lt;code&gt;.pstats&lt;/code&gt; files? How it gets produced. What it means when &lt;code&gt;cumtime&lt;/code&gt; on a function is 20 times larger than &lt;code&gt;tottime&lt;/code&gt;.
The tool was the rock. The investigation was the wave.&lt;/p&gt;</description></item><item><title>What fork() actually copies and how it impact your celery service</title><link>https://tech.daniellbastos.com.br/posts/what-fork-actually-copies/</link><pubDate>Sat, 28 Mar 2026 00:00:00 +0000</pubDate><guid>https://tech.daniellbastos.com.br/posts/what-fork-actually-copies/</guid><description>&lt;p&gt;Shallow changes can have consequences at the bottom of the ocean. This post is an account of something that happened to me recently, and the story is still open. The services are stable, the revert held, and a pull request is sitting there waiting for the team to review. The proposed solution makes sense on paper. Whether it fully solves the problem in practice is something we’ll only know after thorough testing in staging next week.&lt;/p&gt;</description></item></channel></rss>