Sven Klemm ce73f25a87 Optimize first/last
This patch optimizes how first()/last() initialize the compare
function. Previously the compare function would be looked up for
every transition function call but since polymorphic types are
resolved at parse time for a specific aggregate instance the compare
function will not change during its lifetime. Additionally this
patch also fixes a memory leak when using first()/last() on
pointer types.
These changes lead to a roughly 2x speed improvement for first()/
last() and make the memory usage near-constant.

Fixes #3935
2021-12-22 08:12:11 +01:00
..
2021-12-22 08:12:11 +01:00
2021-10-05 20:20:57 +02:00
2020-09-14 10:22:50 +02:00
2021-06-01 20:21:06 +02:00
2021-11-08 09:21:21 +01:00
2021-10-30 17:41:34 +02:00
2020-09-28 12:15:42 +02:00
2019-07-13 17:18:57 +02:00
2021-06-01 20:21:06 +02:00
2021-10-03 15:20:05 +02:00
2021-06-01 20:21:06 +02:00
2020-09-28 12:15:42 +02:00
2020-10-16 08:55:30 -04:00
2019-08-21 14:37:29 -04:00
2021-06-01 20:21:06 +02:00
2019-01-13 23:30:22 +01:00
2021-06-01 20:21:06 +02:00
2021-11-08 09:21:21 +01:00
2021-06-01 20:21:06 +02:00
2021-06-01 20:21:06 +02:00
2021-09-16 14:57:47 +02:00
2021-06-01 20:21:06 +02:00
2021-06-01 20:21:06 +02:00
2019-04-30 22:57:12 +02:00