9 Commits

Author SHA1 Message Date
Kay Hayen
718ab60539 Bump copyright year 2025-04-28 11:04:36 +02:00
Kay Hayen
4f2cc6ae93 Optimization: Enhanced exception handling
* Use exception state to abstract 3.12 or before differences. This
  solves a TODO about more very in-efficient code generated that
  also requires many conversions of exceptions back and forth from
  3 value form to normalized.

* Moved compile time debug settings to separate file.

* Pass the exception state into unpacking function for more
  efficient code. No need to fetch exceptions per use of
  those into the exception state, but it can directly write to
  there.

* Solve TODO and have helper for unpacking length check. When
  migrating to Python3, this became a custom template with a
  lot of manual code that pre-defined the error messages to
  give too.

* Have our own variant of "_PyGen_FetchStopIterationValue" to
  avoid API calls in generator handling.

* Generate more efficient code for raising exceptions of builtin
  type. Rather than calling them as a function, create them via
  base exception new directly which will be much quicker.

* Faster exception creation, avoid having "args" and a tuple need
  to hole them for empty exceptions avoiding one more allocation.

* Remove uses of "PyTuple_Pack" and replace with our own helpers
  to avoid API calls.

* Avoid implicit exception raise nodes with delayed creation, have
  exception making nodes instead.
2024-12-18 11:09:55 +01:00
Kay Hayen
f34f8d0c63 Bump copyright year
* Also split copyright notices between the top and bottom,
  such that readability of just opened files is not harmed
  by license text.
2024-12-18 10:48:16 +01:00
Kay Hayen
909d41f02d Bump copyright year 2023-06-02 15:07:22 +02:00
Kay Hayen
4cfdd9f9c0 Bump copyright year 2022-05-23 10:28:11 +02:00
Kay Hayen
e43b72e087 Bump copyright year to 2021. 2021-01-22 09:58:00 +01:00
Kay Hayen
b2083575cf Bump copyright year to 2020. 2020-02-01 07:42:45 +01:00
Kay Hayen
712036697d Tests: Minor cleanup 2019-03-21 21:33:09 +01:00
Kay Hayen
61b13e9957 Minor cleanups 2019-03-21 21:33:09 +01:00