Skip to content

Sort allocate x2 more memory in master #47715

Closed
@gitboy16

Description

@gitboy16

Hi,
It seems the sort function allocates twice more memory in master vs 1.8.3:

using BenchmarkTools
x = rand(10^8);
@btime sort($x);

In 1.8.3 I get 2 allocations 762 MiB vs 6 allocations 1.49GiB in master.
Is that considered a regression and will it be addressed?
I see that the time spent is improving from 10.2s to 6.2s.
Thank you

PS: I am on Windows and have asked the above question on discourse but did not get any feedback.

Metadata

Metadata

Assignees

Labels

performanceMust go fasterregressionRegression in behavior compared to a previous versionsortingPut things in order

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions