|
From: | Brand Huntsman |
Subject: | [Nano-devel] [PATCH] various color tweaks |
Date: | Fri, 2 Mar 2018 18:22:48 -0700 |
The first patch might reduce memory on 64bit platforms. If sizeof(colortype) > 64 then this patch could reduce memory usage by 32k or more. The struct probably isn't packed and the boolean which adds 4 bytes on 32bit would add 8 bytes on 64bit to keep the pointers aligned. And malloc would allocate 128 bytes to hold the struct. Moving the boolean to end of struct would do the same thing, but there is no reason to have the boolean at all. The other patches contain little things ripped out of the RGB color patches.
0001-remove-bright-field-from-colortype-struct.patch
Description: Text Data
0002-refactor-parse_color_names-function.patch
Description: Text Data
0003-ignore-regex-if-invalid-background-color.patch
Description: Text Data
0004-add-bold-attribute.patch
Description: Text Data
0005-change-wording-in-comment.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |