This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, pitrou, skrah, vstinner
Date 2012-03-20.00:30:49
SpamBayes Score 2.6889602e-12
Marked as misclassified No
Message-id <1332203451.22.0.724931415173.issue14249@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch uses an union to make the compiler warning quiet. It should not speed up Python because the function already ensures that the pointer is aligned to the size of a long. It may slow down the function, I don't know gcc enough to guess exactly the impact on performances.

An alternative is to use __attribute__((__may_alias__)), a GCC specific attribute. I don't know the impact on performances of this attribute.
History
Date User Action Args
2012-03-20 00:30:51vstinnersetrecipients: + vstinner, pitrou, benjamin.peterson, skrah
2012-03-20 00:30:51vstinnersetmessageid: <1332203451.22.0.724931415173.issue14249@psf.upfronthosting.co.za>
2012-03-20 00:30:50vstinnerlinkissue14249 messages
2012-03-20 00:30:50vstinnercreate