<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
If the use case for stability is only .pyc compilation, I doubt it's
even relevant 'cuz .pyc's are supposed to be compiled in isolation
from other current objects (otherwise, they wouldn't be reusable or
would be invalidated when dependent modules change, neither of which
is the case), so relevant reference counts should always be the
same.<br>
I may be mistaking though.<br>
<br>
On 13.07.2018 16:57, Christian Tismer wrote:<br>
<blockquote type="cite"
cite="mid:4496ca29-3ff6-bb98-c2d3-9de37bbbe15d@stackless.com">
<pre wrap="">Well, to my knowledge they did not modify the marshal code.
They are in fact heavily dependent from marshal speed since that
is used frequently to save and restore state of many actors.
But haven't looked further since 2010 ;-)
Btw., why are they considering to make the algorithm slower,
just because someone wants the algorithm stable?
An optional keyword argument would give the stability, and the
default behavior would not be changed at all.
Cheers - Chris
On 12.07.18 12:07, Steve Holden wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Eve is indeed based on stackless 2, and are well capable of ignoring
changes they don't think they need (or were when I was working with
them). At one point I seem to remember they optimised their interpreter
to use singleton floating-point values, saving large quantities of
memory by having only one floating-point zero.
Steve Holden
On Thu, Jul 12, 2018 at 9:55 AM, Alex Walters <<a class="moz-txt-link-abbreviated" href="mailto:tritium-list@sdamon.com">tritium-list@sdamon.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:tritium-list@sdamon.com"><mailto:tritium-list@sdamon.com></a>> wrote:
> -----Original Message-----
> From: Python-Dev <python-dev-bounces+tritium-
> <a class="moz-txt-link-abbreviated" href="mailto:list=sdamon.com@python.org">list=sdamon.com@python.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:sdamon.com@python.org"><mailto:sdamon.com@python.org></a>> On Behalf Of
Victor Stinner
> Sent: Thursday, July 12, 2018 4:01 AM
> To: Serhiy Storchaka <<a class="moz-txt-link-abbreviated" href="mailto:storchaka@gmail.com">storchaka@gmail.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:storchaka@gmail.com"><mailto:storchaka@gmail.com></a>>
> Cc: python-dev <<a class="moz-txt-link-abbreviated" href="mailto:python-dev@python.org">python-dev@python.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:python-dev@python.org"><mailto:python-dev@python.org></a>>
> Subject: Re: [Python-Dev] Can I make marshal.dumps() slower but stabler?
>
> 2018-07-12 8:21 GMT+02:00 Serhiy Storchaka <<a class="moz-txt-link-abbreviated" href="mailto:storchaka@gmail.com">storchaka@gmail.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:storchaka@gmail.com"><mailto:storchaka@gmail.com></a>>:
> >> Is there any real application which marshal.dumps() performance is
> >> critical?
> >
> > EVE Online is a well known example.
>
> EVE Online has been created in 2003. I guess that it still uses Python
2.7.
>
> I'm not sure that a video game would pick marshal in 2018.
>
EVE doesn't use stock CPython, IIRC. They use a version of stackless 2,
with their own patches. If a company is willing to patch python
itself, I
don't think their practices should be cited without more context
about what
they actually modified.
> Victor
> _______________________________________________
> Python-Dev mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:Python-Dev@python.org"><mailto:Python-Dev@python.org></a>
> <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
<a class="moz-txt-link-rfc2396E" href="https://mail.python.org/mailman/listinfo/python-dev"><https://mail.python.org/mailman/listinfo/python-dev></a>
> Unsubscribe:
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/tritium">https://mail.python.org/mailman/options/python-dev/tritium</a>-
<a class="moz-txt-link-rfc2396E" href="https://mail.python.org/mailman/options/python-dev/tritium-"><https://mail.python.org/mailman/options/python-dev/tritium-></a>
> list%40sdamon.com <a class="moz-txt-link-rfc2396E" href="http://40sdamon.com"><http://40sdamon.com></a>
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:Python-Dev@python.org"><mailto:Python-Dev@python.org></a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
<a class="moz-txt-link-rfc2396E" href="https://mail.python.org/mailman/listinfo/python-dev"><https://mail.python.org/mailman/listinfo/python-dev></a>
Unsubscribe:
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/steve%40holdenweb.com">https://mail.python.org/mailman/options/python-dev/steve%40holdenweb.com</a>
<a class="moz-txt-link-rfc2396E" href="https://mail.python.org/mailman/options/python-dev/steve%40holdenweb.com"><https://mail.python.org/mailman/options/python-dev/steve%40holdenweb.com></a>
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/tismer%40stackless.com">https://mail.python.org/mailman/options/python-dev/tismer%40stackless.com</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/vano%40mail.mipt.ru">https://mail.python.org/mailman/options/python-dev/vano%40mail.mipt.ru</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Ivan</pre>
</body>
</html>