nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] [PATCH] various color tweaks


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.

Attachment: 0001-remove-bright-field-from-colortype-struct.patch
Description: Text Data

Attachment: 0002-refactor-parse_color_names-function.patch
Description: Text Data

Attachment: 0003-ignore-regex-if-invalid-background-color.patch
Description: Text Data

Attachment: 0004-add-bold-attribute.patch
Description: Text Data

Attachment: 0005-change-wording-in-comment.patch
Description: Text Data


reply via email to

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