From b9af3bab926f06cfd6a6b68709f2a94bef92ee88 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 3 Apr 2011 20:10:26 +0000 Subject: [PATCH] made FileEntry derive from SmallObject class, to improve memory cache efficiency (50% time gained) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4122 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/dbase/findex.h | 4 +++- libretroshare/src/util/smallobject.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/dbase/findex.h b/libretroshare/src/dbase/findex.h index b429bd608..bd0eea2a6 100644 --- a/libretroshare/src/dbase/findex.h +++ b/libretroshare/src/dbase/findex.h @@ -74,9 +74,11 @@ class ostream; * FileEntry *****************************************************************************************/ +#include + class DirEntry; -class FileEntry +class FileEntry: public RsMemoryManagement::SmallObject { public: FileEntry() diff --git a/libretroshare/src/util/smallobject.h b/libretroshare/src/util/smallobject.h index a745ad9ba..cec0301f6 100644 --- a/libretroshare/src/util/smallobject.h +++ b/libretroshare/src/util/smallobject.h @@ -23,6 +23,8 @@ * */ +#pragma once + #include #include