An error occurred fetching the project authors.
- 16 Jan, 2022 1 commit
-
-
Stefan Behnel authored
Cython incorrectly generated (optimised) range code for "for i in range(1,2,3,4)" as if it saw "for i in range(1,2,3)". This PR deactivates this optimization when too many arguments are provided, to match the behavior of Python. Original patch by Max Bachmann. Closes https://github.com/cython/cython/pull/4550
-
- 14 Dec, 2021 1 commit
-
-
Arvind Natarajan authored
Closes https://github.com/cython/cython/issues/3938
-
- 14 Apr, 2021 1 commit
-
-
da-woods authored
* Handle constant folding for LanguageLevel 2 on Python 3. Ensure that when StrNode is a BytesLiteral, that we don't coerce it to unicode. * Add test for string multiplication bug. Needed to change the TreePath slightly to allow bytes-to-str comparison. Fixes https://github.com/cython/cython/issues/3951
-
- 09 May, 2020 2 commits
-
-
Stefan Behnel authored
Fix optimisation of aligned '%' formats ('%05s', '%-5s') into the correct f-string alignment format. Closes https://github.com/cython/cython/issues/3476
-
scoder authored
Floats do not support '{x:d}' formatting and need conversion to 'int' first. Closes https://github.com/cython/cython/issues/3092
-
- 30 Apr, 2019 1 commit
-
-
Stefan Behnel authored
Closes GH-2939.
-
- 01 Feb, 2019 2 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Closes #2820.
-
- 08 Sep, 2018 3 commits
-
-
Stefan Behnel authored
Fix constant folding of multiplied string literals when they appear in another constant expression. In this case, the multiplied value was lost and replaced by the original value.
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix constant folding of multiplied string literals when they appear in another constant expression. In this case, the multiplied value was lost and replaced by the original value.
-
- 07 Jul, 2018 1 commit
-
-
Stefan Behnel authored
Repair accidentally broken support for comparing non-trivial objects (e.g. NumPy arrays) to integer constants. Closes #2444.
-
- 16 May, 2018 1 commit
-
-
Stefan Behnel authored
Speed up 1-argument method calls, especially those to CyFunctions, by avoiding the creation of a bound method object.
-
- 13 Apr, 2018 2 commits
-
-
Stefan Behnel authored
Give equality comparisons to integer constants a dedicated implementation that minimises branching and comparisons.
-
Stefan Behnel authored
The optimised int/float comparison was accidentally not activated when the result of a comparison was already known to be of type bint (instead of a Python object), nor for the "!=" operator. These seem to be fairly common cases.
-
- 24 Mar, 2018 2 commits
-
-
Stefan Behnel authored
Apply the switch-transformation also recursively to if-clauses and else-body of if-statements that were converted.
-
Stefan Behnel authored
-
- 18 Mar, 2018 1 commit
-
-
Stefan Behnel authored
Closes #2152.
-
- 25 Feb, 2018 2 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 23 Feb, 2018 1 commit
-
-
Stefan Behnel authored
-
- 16 Feb, 2018 2 commits
-
-
Stefan Behnel authored
Re-enable method unpacking inside of the module init function if the call occurs inside of a loop (probably still worth it there). See #2102.
-
Stefan Behnel authored
Disable method unpacking inside of module init function by default as it really just increases the code size to uselessly speed up one-time code. See #2102.
-
- 10 Feb, 2018 2 commits
-
-
Stefan Behnel authored
Closes #2096.
-
Stefan Behnel authored
-
- 07 Feb, 2018 1 commit
-
-
Stefan Behnel authored
Use a dedicated ExprNode class for Pythran implemented NumPy methods to move them out of the way of Python call optimisations.
-
- 26 Jan, 2018 1 commit
-
-
Stefan Behnel authored
Pass "never None" property of decoded byte strings through to the code that uses them.
-
- 20 Jan, 2018 1 commit
-
-
Stefan Behnel authored
-
- 13 Jan, 2018 1 commit
-
-
Stefan Behnel authored
Evaluate multiplication of string literals at compile time if the result is short (<= 256 characters).
-
- 10 Jan, 2018 1 commit
-
-
Stefan Behnel authored
Disable an optimisation that turned out to be a pessimisation (replacing literal lists with tuples).
-
- 07 Jan, 2018 3 commits
-
-
Stefan Behnel authored
Increase number of items for which list.extend([...]) is optimised. Benchmarking shows that append() is still faster for 8 items (on an empty list) than extend(). This limit could be increased for larger lists (which grow by a larger amount), but if we have to settle on one value then 8 is good enough, as we can expect literal item lists to be rather short.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 23 Dec, 2017 1 commit
-
-
Stefan Behnel authored
Closes #2048.
-
- 22 Dec, 2017 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 20 Dec, 2017 3 commits
-
-
Stefan Behnel authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-