Change by Niklas Fiekas :
--
pull_requests: +19946
pull_request: https://github.com/python/cpython/pull/20739
___
Python tracker
<https://bugs.python.org/issue29
Change by Niklas Fiekas :
--
nosy: +niklasf
___
Python tracker
<https://bugs.python.org/issue19915>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Niklas Fiekas :
--
keywords: +patch, patch, patch
pull_requests: +11184, 11185, 11186
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Niklas Fiekas :
--
keywords: +patch, patch
pull_requests: +11184, 11185
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Niklas Fiekas :
--
keywords: +patch
pull_requests: +11184
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35721>
___
___
Py
New submission from Niklas Fiekas :
Output of attached test case:
non-existing indeed
subprocess-exec-test.py:11: ResourceWarning: unclosed
print("non-existing indeed")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
subprocess-exec-test.py:11: Resou
Changes by Niklas Fiekas :
--
pull_requests: +2916
___
Python tracker
<http://bugs.python.org/issue31031>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Niklas Fiekas:
My previous patch to optimize bits_in_digit was
rejected: http://bugs.python.org/issue29782
This leaves this issue open (mathmodule.c):
/* XXX: This routine does more or less the same thing as
* bits_in_digit() in Objects/longobject.c. Someday it would be
Changes by Niklas Fiekas :
--
components: +Build -Interpreter Core
nosy: +Jeffrey.Armstrong, christian.heimes
type: -> compile error
___
Python tracker
<http://bugs.python.org/issu
Changes by Niklas Fiekas :
--
pull_requests: +777
___
Python tracker
<http://bugs.python.org/issue29936>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Niklas Fiekas:
The patch in http://bugs.python.org/issue16881 disables the nicer macro for gcc
3.x due to a small typo.
The build is not failing. The guard just unnescessarily evaluates to false.
--
components: Interpreter Core
messages: 290738
nosy: niklasf
Niklas Fiekas added the comment:
Searching popcount in Python files on GitHub yields
a considerable number of examples:
https://github.com/search?utf8=%E2%9C%93&q=popcount+extension%3Apy&type=Code
Perhaps intresting:
* In CPython itself: See count_set_bits in
Modules/mathmodule.c
Changes by Niklas Fiekas :
--
pull_requests: +678
___
Python tracker
<http://bugs.python.org/issue29882>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Niklas Fiekas:
An efficient popcount (something equivalent to bin(a).count("1")) would
be useful for numerics, parsing binary formats, scientific applications
and others.
DESIGN DECISIONS
* Is a popcount method useful enough?
* How to handle negative values?
*
Niklas Fiekas added the comment:
Oops. Actually clz should commonly be enough. And platforms where clz and clzl
are different (<=> unsigned int and unsigned long are different) should be rare.
--
___
Python tracker
<http://bugs.p
Niklas Fiekas added the comment:
Thanks for the review.
I pushed a change to check if clz can be used (`sizeof(digit) <=
sizeof(unsigned int)`). Otherwise use clzl. I believe the latter should be the
most common, since unsigned long has 32bits. As you say unsigned long long
should never
Changes by Niklas Fiekas :
--
pull_requests: +490
___
Python tracker
<http://bugs.python.org/issue29782>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Niklas Fiekas:
Baseline performance (9e6ac83acae):
$ ./python -m timeit "12345678 == 12345678.0"
500 loops, best of 5: 40 nsec per loop
$ ./python -m timeit "1 == 1.0"
1000 loops, best of 5: 38.8 nsec per loop
$ ./python -m timeit "(123
18 matches
Mail list logo