Chromium Code Reviews
DescriptionMove seven small arrays to read-only data segment
Global arrays should be tagged as const when possible. This lets most
compilers put them in the read-only data segment which is always
shared between processes.
Two of the relevant structs also fell afoul of a VC++ bug that prevents
variables from being put in the read-only data segment. Thus this change
works by *adding* const eight times and *removing* it twice. The net
result is just 556 bytes being moved, but it's the thought that counts.
Compilers are awesome.
VC++ bug is filed here:
https://connect.microsoft.com/VisualStudio/feedback/details/3117602
BUG=677351
Review-Url: https://codereview.chromium.org/2618873002
Cr-Commit-Position: refs/heads/master@{#442329}
Committed: https://chromium.googlesource.com/chromium/src/+/aef5c1f5d4a23b24300e2bc3e2099c14e48ce21e
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||