bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18874] New: src/gold/gc.h:207: performance tweek ?


From: dcb314 at hotmail dot com
Subject: [Bug gold/18874] New: src/gold/gc.h:207: performance tweek ?
Date: Wed, 26 Aug 2015 09:10:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18874

            Bug ID: 18874
           Summary: src/gold/gc.h:207: performance tweek ?
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: dcb314 at hotmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

[src/gold/gc.h:207]: (performance) Passing the result of c_str() to a function
that takes std::string as argument no. 1 is slow and redundant.

Source code is

 if (parameters->options().icf_enabled()
      && is_section_foldable_candidate(src_section_name.c_str()))

but

inline bool
is_section_foldable_candidate(const std::string& section_name)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]