Closed hubertp closed 5 months ago
I guess I should wait for
before starting the benchmarks.
Looks like the sorting code is running fast already. Closing.
Jaroslav Tulach reports a new STANDUP for yesterday (2024-06-02):
Progress: - new Rational
benchmark: https://github.com/enso-org/enso/pull/10142#issuecomment-2143321164
Discussion on https://github.com/enso-org/enso/pull/6334 (a fix for https://github.com/enso-org/enso/issues/6276) revealed some problems with the implementation of
Vector.sort
. While the performance is now acceptable, we could potentially do much more in terms of making it more Truffle-friendly.Main issues:
Node
and non-Node
objects, blurring the line between "code" and "data"sortGeneric
specialization usesCached
nodes while at the same stating theTruffleBoundary
, potentially making the whole thing slower than it could beCompare
class could potentially extendNode
CallTarget
to "jump to PE", a similar trick to what was done in https://github.com/enso-org/enso/issues/5782GenericComparator
that are responsible for function invocation (likeCallOptimiserNode
), with directCallTarget
invocation. As the following diff suggests: