<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 12, 2019 at 5:51 AM Stefan Behnel <<a href="mailto:stefan_ml@behnel.de">stefan_ml@behnel.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Serhiy Storchaka schrieb am 11.04.19 um 17:30:<br>
> If reducing the Python memory footprint is an argument for disabling<br>
> Py_TRACE_REFS, it is a weak argument because there is larger overhead in<br>
> the debug build.<br>
<br>
I think what Victor is argueing is rather that we have better ways to debug<br>
memory problems these days, so we might be able to get rid of a relict that<br>
no-one is using (or should be using) anymore and that has its drawbacks<br>
(such as a very different ABI and higher memory load).<br>
<br>
I don't really have an opinion here, but I can at least say that I never<br>
found a use case for Py_TRACE_REFS myself and therefore certainly wouldn't<br>
miss it.<br></blockquote><div><br></div><div>I have a feeling that at some point someone might want to use this to debug some leak (presumably caused by C code) beyond what gc.get_objects() can report. But I agree that it isn't useful to the vast majority of users of a regular debug build. So let's leave it off by default even in debug builds. But let's not delete the macros.<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div><div><i style="font-family:Arial,Helvetica,sans-serif;font-size:small;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);color:rgb(136,136,136)"><span>Pronouns</span>: he/him/his </i><a href="http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/" style="color:rgb(17,85,204);font-family:Arial,Helvetica,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank"><i>(why is my <span>pronoun</span> here?)</i></a></div></div></div></div>