[Webkit-unassigned] [Bug 187455] New: Can we make WebCore::Timer more space-efficient?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 8 19:20:37 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187455

            Bug ID: 187455
           Summary: Can we make WebCore::Timer more space-efficient?
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

Timer member variables often introduce 7 bytes of padding because of the bool at the end.

+120 < 72>     WebCore::Timer m_timeoutTimer
+120 < 64>         WebCore::TimerBase WebCore::TimerBase
+120 <  8>            __vtbl_ptr_type * _vptr
+128 <  8>             WTF::MonotonicTime m_nextFireTime
+128 <  8>               double m_value
+136 <  8>             WTF::MonotonicTime m_unalignedNextFireTime
+136 <  8>               double m_value
+144 <  8>             WTF::Seconds m_repeatInterval
+144 <  8>               double m_value
+152 <  4>           int m_heapIndex
+156 <  4>           unsigned int m_heapInsertionOrder
+160 <  1>           bool m_wasDeleted
+161 <  7>           <PADDING: 7 bytes>

Can we steal a bit from m_heapIndex or m_heapInsertionOrder for this bool?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180709/400f7526/attachment.html>


More information about the webkit-unassigned mailing list