Re: Micro optimizations welcome?

2016-09-17 Thread Ursache Vladimir
inter On Sun, Sep 18, 2016 at 4:03 AM, Yong Bakos wrote: > On Sep 17, 2016, at 5:42 PM, Ursache Vladimir wrote: >> >> Hi, >> On amd64 struct wl_display from wayland-client.c can shrink in size >> from 320 bytes to 304 if two fields (last_error and id) are >> r

Micro optimizations welcome?

2016-09-17 Thread Ursache Vladimir
Hi, On amd64 struct wl_display from wayland-client.c can shrink in size from 320 bytes to 304 if two fields (last_error and id) are rearranged. Compiles fine. End result looks like this: struct wl_display { struct wl_proxy proxy; struct wl_connection *connection; /* When display get