#i101955# replaced uses of STLport hash_map with map to (drastically) improve performance
This commit is contained in:
parent
bf5ee44929
commit
f06edd112b
3 changed files with 11 additions and 22 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "sal/config.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "boost/noncopyable.hpp"
|
||||
|
@ -62,7 +63,6 @@
|
|||
#include "com/sun/star/uno/Sequence.hxx"
|
||||
#include "rtl/ref.hxx"
|
||||
#include "sal/types.h"
|
||||
#include "stl/hash_map"
|
||||
|
||||
#include "nodemap.hxx"
|
||||
#include "type.hxx"
|
||||
|
@ -90,10 +90,7 @@ namespace com { namespace sun { namespace star {
|
|||
}
|
||||
namespace util { struct ElementChange; }
|
||||
} } }
|
||||
namespace rtl {
|
||||
class OUString;
|
||||
struct OUStringHash;
|
||||
}
|
||||
namespace rtl { class OUString; }
|
||||
|
||||
namespace configmgr {
|
||||
|
||||
|
@ -168,9 +165,7 @@ protected:
|
|||
void commitChildChanges(bool valid);
|
||||
|
||||
public: //TODO
|
||||
typedef
|
||||
std::hash_map<
|
||||
rtl::OUString, rtl::Reference< ChildAccess >, rtl::OUStringHash >
|
||||
typedef std::map< rtl::OUString, rtl::Reference< ChildAccess > >
|
||||
HardChildMap;
|
||||
|
||||
HardChildMap modifiedChildren_;
|
||||
|
@ -441,8 +436,7 @@ private:
|
|||
|
||||
void checkFinalized();
|
||||
|
||||
typedef std::hash_map< rtl::OUString, ChildAccess *, rtl::OUStringHash >
|
||||
WeakChildMap;
|
||||
typedef std::map< rtl::OUString, ChildAccess * > WeakChildMap;
|
||||
|
||||
WeakChildMap cachedChildren_;
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "boost/noncopyable.hpp"
|
||||
|
@ -58,7 +59,6 @@
|
|||
#include "rtl/ustring.h"
|
||||
#include "rtl/ustring.hxx"
|
||||
#include "sal/types.h"
|
||||
#include "stl/hash_map"
|
||||
|
||||
#include "components.hxx"
|
||||
#include "groupnode.hxx"
|
||||
|
@ -77,8 +77,7 @@ namespace {
|
|||
|
||||
namespace css = com::sun::star;
|
||||
|
||||
typedef std::hash_map< rtl::OUString, css::uno::Any, rtl::OUStringHash >
|
||||
LocalizedValues;
|
||||
typedef std::map< rtl::OUString, css::uno::Any > LocalizedValues;
|
||||
|
||||
bool isRemovedValue(css::uno::Any const & value) {
|
||||
// An ANY of type TYPE whose value is VOID is used within a LocalizedValues
|
||||
|
|
|
@ -32,21 +32,17 @@
|
|||
|
||||
#include "sal/config.h"
|
||||
|
||||
#include "rtl/ref.hxx"
|
||||
#include "stl/hash_map"
|
||||
#include <map>
|
||||
|
||||
namespace rtl {
|
||||
class OUString;
|
||||
struct OUStringHash;
|
||||
}
|
||||
#include "rtl/ref.hxx"
|
||||
|
||||
namespace rtl { class OUString; }
|
||||
|
||||
namespace configmgr {
|
||||
|
||||
class Node;
|
||||
|
||||
typedef
|
||||
std::hash_map< rtl::OUString, rtl::Reference< Node >, rtl::OUStringHash >
|
||||
NodeMap;
|
||||
typedef std::map< rtl::OUString, rtl::Reference< Node > > NodeMap;
|
||||
|
||||
void cloneNodeMap(NodeMap const & source, NodeMap * target);
|
||||
|
||||
|
|
Loading…
Reference in a new issue