diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-03 17:22:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-03 17:22:19 +0000 |
commit | 4c10b1b16a1dfc9aceeaea5c668da890a97f55b6 (patch) | |
tree | a499ab2286a14679fb1e45630f7f773465ff397e /plugins/Dbx_kyoto/src/dbintf.h | |
parent | e164ace17434d7f21bd831f41211a9515feebeda (diff) |
table tuning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12588 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_kyoto/src/dbintf.h')
-rw-r--r-- | plugins/Dbx_kyoto/src/dbintf.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/plugins/Dbx_kyoto/src/dbintf.h b/plugins/Dbx_kyoto/src/dbintf.h index cfde9f33b4..cbf2510f19 100644 --- a/plugins/Dbx_kyoto/src/dbintf.h +++ b/plugins/Dbx_kyoto/src/dbintf.h @@ -123,6 +123,16 @@ struct DBCachedContact : public DBCachedContactBase DBContact dbc;
};
+struct CTable : public TreeDB
+{
+ CTable()
+ {
+ tune_options(TLINEAR | TCOMPRESS);
+ tune_alignment(3);
+ tune_map(1024 * 1024);
+ }
+};
+
struct CDbxKV : public MIDatabase, public MIDatabaseChecker, public MZeroedObject
{
CDbxKV(const TCHAR *tszFileName, int mode);
@@ -217,7 +227,7 @@ public: MICryptoEngine *m_crypto;
protected:
- TreeDB m_dbGlobal;
+ CTable m_dbGlobal;
DBHeader m_header;
HANDLE hSettingChangeEvent, hContactDeletedEvent, hContactAddedEvent, hEventMarkedRead;
@@ -229,14 +239,14 @@ protected: ////////////////////////////////////////////////////////////////////////////
// settings
- TreeDB m_dbSettings;
+ CTable m_dbSettings;
int m_codePage;
HANDLE hService, hHook;
////////////////////////////////////////////////////////////////////////////
// contacts
- TreeDB m_dbContacts;
+ CTable m_dbContacts;
int m_contactCount, m_dwMaxContactId;
int WipeContactHistory(DBContact *dbc);
@@ -244,7 +254,7 @@ protected: ////////////////////////////////////////////////////////////////////////////
// events
- TreeDB m_dbEvents, m_dbEventsSort;
+ CTable m_dbEvents, m_dbEventsSort;
DWORD m_dwMaxEventId, m_tsLast;
MEVENT m_evLast;
@@ -253,7 +263,7 @@ protected: ////////////////////////////////////////////////////////////////////////////
// modules
- TreeDB m_dbModules;
+ CTable m_dbModules;
HANDLE m_hModHeap;
LIST<ModuleName> m_lMods, m_lOfs;
LIST<char> m_lResidentSettings;
|