#3552: .data section is unnecessarily large
-------------------------+--------------------------------------------------
Reporter: danf | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mutt | Version: 1.5.21
Keywords: patch |
-------------------------+--------------------------------------------------
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>
Mutt <http://www.mutt.org/>
The Mutt mail user agent