#3552: .data section is unnecessarily large
--------------------------+-------------------------------------------------
  Reporter:  danf         |       Owner:  mutt-dev
      Type:  enhancement  |      Status:  closed  
  Priority:  minor        |   Milestone:          
 Component:  mutt         |     Version:  1.5.21  
Resolution:  fixed        |    Keywords:  patch   
--------------------------+-------------------------------------------------
Changes (by Dan Fandrich <dan@…>):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [9e756d1adb76]) Declare many structures const (closes #3552)

 Many structs used in mutt are actually constant but are defined
 without the 'const' keyword. This can slow initialization (slightly)
 in some environments due to extra copying and increases the amount of
 writable RAM required at run-time, which can be significant on non-MMU
 systems. Using const can also increase the opportunities for compiler
 optimization.

 The attached patch marks many such structures as const. On my test x86
 build, this reduces the size of .data by over 50%.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3552#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to