Title: [101327] trunk/Source/WebCore
Revision
101327
Author
commit-qu...@webkit.org
Date
2011-11-28 22:25:48 -0800 (Mon, 28 Nov 2011)

Log Message

Size of ResourceRequestBase could be reduced by using bitfields.
https://bugs.webkit.org/show_bug.cgi?id=73271

Patch by Yongjun Zhang <yongjun_zh...@apple.com> on 2011-11-28
Reviewed by Alexey Proskuryakov.

Add bitfield for bool members in ResourceRequestBase to reduce its memory size.

* platform/network/ResourceRequestBase.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (101326 => 101327)


--- trunk/Source/WebCore/ChangeLog	2011-11-29 06:21:35 UTC (rev 101326)
+++ trunk/Source/WebCore/ChangeLog	2011-11-29 06:25:48 UTC (rev 101327)
@@ -1,3 +1,14 @@
+2011-11-28  Yongjun Zhang  <yongjun_zh...@apple.com>
+
+        Size of ResourceRequestBase could be reduced by using bitfields.
+        https://bugs.webkit.org/show_bug.cgi?id=73271
+
+        Reviewed by Alexey Proskuryakov.
+
+        Add bitfield for bool members in ResourceRequestBase to reduce its memory size.
+
+        * platform/network/ResourceRequestBase.h:
+
 2011-11-28  Yuta Kitamura  <yu...@chromium.org>
 
         WebSocket: Split Hixie76 length-prefixed frames aren't handled correctly

Modified: trunk/Source/WebCore/platform/network/ResourceRequestBase.h (101326 => 101327)


--- trunk/Source/WebCore/platform/network/ResourceRequestBase.h	2011-11-29 06:21:35 UTC (rev 101326)
+++ trunk/Source/WebCore/platform/network/ResourceRequestBase.h	2011-11-29 06:25:48 UTC (rev 101327)
@@ -184,12 +184,12 @@
         Vector<String> m_responseContentDispositionEncodingFallbackArray;
 #endif
         RefPtr<FormData> m_httpBody;
-        bool m_allowCookies;
-        mutable bool m_resourceRequestUpdated;
-        mutable bool m_platformRequestUpdated;
-        bool m_reportUploadProgress;
-        bool m_reportLoadTiming;
-        bool m_reportRawHeaders;
+        bool m_allowCookies : 1;
+        mutable bool m_resourceRequestUpdated : 1;
+        mutable bool m_platformRequestUpdated : 1;
+        bool m_reportUploadProgress : 1;
+        bool m_reportLoadTiming : 1;
+        bool m_reportRawHeaders : 1;
         ResourceLoadPriority m_priority;
 
     private:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to