From 465c97902200aca64a25773c6a365a7b4df1c23b Mon Sep 17 00:00:00 2001 From: Martin Gallwey Date: Fri, 14 Sep 2001 13:38:16 +0000 Subject: [PATCH] #89303# optimise hash maps for speed (and put them all in one place) --- package/inc/HashMaps.hxx | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/package/inc/HashMaps.hxx b/package/inc/HashMaps.hxx index 125a2dbecea9..691722520b5b 100644 --- a/package/inc/HashMaps.hxx +++ b/package/inc/HashMaps.hxx @@ -2,9 +2,9 @@ * * $RCSfile: HashMaps.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mtg $ $Date: 2001-07-04 14:56:13 $ + * last change: $Author: mtg $ $Date: 2001-09-14 14:38:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,6 +67,9 @@ #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEl_HPP_ #include #endif +#ifndef _ZIP_ENTRY_HXX_ +#include +#endif #include struct eqFunc @@ -78,13 +81,22 @@ struct eqFunc } }; -typedef std::hash_map < rtl::OUString, - com::sun::star::uno::Reference < com::sun::star::lang::XUnoTunnel >, - ::rtl::OUStringHash, - eqFunc > TunnelHash; +class ZipPackageFolder; +struct ContentInfo; typedef std::hash_map < rtl::OUString, - com::sun::star::uno::Reference < com::sun::star::container::XNameContainer >, + ZipPackageFolder *, ::rtl::OUStringHash, - eqFunc > NameHash; + eqFunc > FolderHash; + +typedef std::hash_map < rtl::OUString, + ContentInfo *, + ::rtl::OUStringHash, + eqFunc > ContentHash; + +typedef std::hash_map < rtl::OUString, + ZipEntry, + rtl::OUStringHash, + eqFunc > EntryHash; + #endif