Title: [123820] trunk/Source/WebCore
- Revision
- 123820
- Author
- [email protected]
- Date
- 2012-07-26 17:34:48 -0700 (Thu, 26 Jul 2012)
Log Message
Initialize the Event Names' strings from read only memory
https://bugs.webkit.org/show_bug.cgi?id=92435
Patch by Benjamin Poulain <[email protected]> on 2012-07-26
Reviewed by Anders Carlsson.
Similarily to r123689, we can initialize the event names' strings from memory without copying the data.
This saves us memory and initialization time.
* dom/EventNames.cpp:
(WebCore):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (123819 => 123820)
--- trunk/Source/WebCore/ChangeLog 2012-07-27 00:25:04 UTC (rev 123819)
+++ trunk/Source/WebCore/ChangeLog 2012-07-27 00:34:48 UTC (rev 123820)
@@ -1,3 +1,16 @@
+2012-07-26 Benjamin Poulain <[email protected]>
+
+ Initialize the Event Names' strings from read only memory
+ https://bugs.webkit.org/show_bug.cgi?id=92435
+
+ Reviewed by Anders Carlsson.
+
+ Similarily to r123689, we can initialize the event names' strings from memory without copying the data.
+ This saves us memory and initialization time.
+
+ * dom/EventNames.cpp:
+ (WebCore):
+
2012-07-26 Arnaud Renevier <[email protected]>
constructing TypedArray from another TypedArray is slow
Modified: trunk/Source/WebCore/dom/EventNames.cpp (123819 => 123820)
--- trunk/Source/WebCore/dom/EventNames.cpp 2012-07-27 00:25:04 UTC (rev 123819)
+++ trunk/Source/WebCore/dom/EventNames.cpp 2012-07-27 00:34:48 UTC (rev 123820)
@@ -24,10 +24,10 @@
namespace WebCore {
#define INITIALIZE_EVENT_NAME(name) \
- , name##Event(#name)
+ , name##Event(#name, AtomicString::ConstructFromLiteral)
#define INITIALIZE_EVENT_INTERFACE(name) \
- , interfaceFor##name(#name)
+ , interfaceFor##name(#name, AtomicString::ConstructFromLiteral)
EventNames::EventNames()
: dummy(0)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes