gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, objecturi, updated. 061f15fd40ae9d31c


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, objecturi, updated. 061f15fd40ae9d31c960a2a36fa9d69c7f34f8d7
Date: Thu, 23 Sep 2010 17:10:26 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, objecturi has been updated
       via  061f15fd40ae9d31c960a2a36fa9d69c7f34f8d7 (commit)
      from  7b4a82f98ab0d2d5197dfc657f47c717be997eec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=061f15fd40ae9d31c960a2a36fa9d69c7f34f8d7


commit 061f15fd40ae9d31c960a2a36fa9d69c7f34f8d7
Author: Sandro Santilli <address@hidden>
Date:   Thu Sep 23 19:09:55 2010 +0200

    iterator_find doesn't need stats gathering, and getProperty should dump 
less (it's easy to reach one million lookups of __proto__)

diff --git a/libcore/PropertyList.cpp b/libcore/PropertyList.cpp
index e2aabff..818481c 100644
--- a/libcore/PropertyList.cpp
+++ b/libcore/PropertyList.cpp
@@ -57,13 +57,6 @@ inline
 PropertyList::const_iterator
 iterator_find(const PropertyList::container& p, const ObjectURI& uri, VM& vm)
 {
-#ifdef GNASH_STATS_PROPERTY_LOOKUPS
-    // HINT: can add a final arg to KeyLookup ctor, like 
NSV::PROP_ON_MOUSE_MOVE
-    //       to have *that* property lookup drive dump triggers
-    static stats::KeyLookup kcl("PropertyList::iterator_find", 
vm.getStringTable(), 10000);
-    kcl.check(uri.name);
-#endif // GNASH_STATS_PROPERTY_LOOKUPS
-    
     const bool caseless = vm.getSWFVersion() < 7;
 
     if (!caseless) {
@@ -143,7 +136,8 @@ PropertyList::getProperty(const ObjectURI& uri) const
 #ifdef GNASH_STATS_PROPERTY_LOOKUPS
     // HINT: can add a final arg to KeyLookup ctor, like 
NSV::PROP_ON_MOUSE_MOVE
     //       to have *that* property lookup drive dump triggers
-    static stats::KeyLookup kcl("getProperty", getStringTable(_owner), 10000);
+    static stats::KeyLookup kcl("getProperty",
+        getStringTable(_owner), 10000000);
     kcl.check(uri.name);
 #endif // GNASH_STATS_PROPERTY_LOOKUPS
        iterator found = iterator_find(_props, uri, getVM(_owner));

-----------------------------------------------------------------------

Summary of changes:
 libcore/PropertyList.cpp |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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