New issue
Advanced search Search tips

Issue 714846 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Feb 2018
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Investigate if we can detect unique_ptr candidates for inlining

Project Member Reported by kmarshall@chromium.org, Apr 24 2017

Issue description

We could potentially reduce CPU and memory consumption by converting unique_ptr fields into bare fields, for the cases where unique_ptr lifetime is bound to the lifetime of their container. 

My suspicion is that developers might be declaring unique_ptr fields out of habit and giving up some efficiency as a result, producing unnecessary mallocs and memory fragmentation.

This seems like a good candidate case for a custom static analysis module. Could be worth bringing up with the LLVM team or hacking out an example.
 
Description: Show this description
Owner: ----
Status: WontFix (was: Assigned)

Sign in to add a comment