-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Milestone
Description
Between rustc 1.19.0-nightly (10d7cb44c 2017-06-18)
and 1.20.0-nightly (445077963 2017-06-20)
I experienced one of my binaries to grow up from 3.4M to 3.7M, which is approx 8.8%. At first I was scared that this was a fallout of my own PR (#42716), but that particular binary didn't use C strings almost at all.
I examined a diff in symbols made with nm
and saw that the binary compiled with 1.20.0-nightly (445077963 2017-06-20)
has a lot more symbols like that:
_<alloc::raw_vec::RawVec<T, A>>::dealloc_buffer
(14 occurences)_alloc::allocator::Alloc::alloc_array
(57 occurences)_alloc::allocator::Alloc::realloc_array
(28 occurences)_core::ptr::drop_in_place
(mighty 138 new occurences)
This leads us to the possibility that #42313 is the culprit.
Current Situation
There are 2 reproducers, and I need to make some measurements:
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.