diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-02-06 00:06:34 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-02-06 00:09:07 +0100 |
commit | c87d46c2af765e61b64dfb0859760b46cb432a59 (patch) | |
tree | d12fd6f7a35565273eda38150f8d79a7ea5ccce4 /plugins/Msg_Export/src/utils.h | |
parent | 98518865f72ccb25e3f5a061508aff98ffb59493 (diff) |
Msg_Export: Fix exporting unicode messages, make it even faster (addresses #609)
Previously code worked with opening file and loading BOM at writing each event. When we stopped closing/opening file at each event it couldn't read BOM anymore, so it wrote messages in wrong codepage.
This is not fixed by parameter defining we are just appending the file, so it doesn't need to determing BOM or even check file size. Thanks to this exporting is now about 70% faster than the initial optimization commit (in sum 13.5x faster than before).
Diffstat (limited to 'plugins/Msg_Export/src/utils.h')
-rwxr-xr-x | plugins/Msg_Export/src/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Msg_Export/src/utils.h b/plugins/Msg_Export/src/utils.h index de0055fccc..6835ba182b 100755 --- a/plugins/Msg_Export/src/utils.h +++ b/plugins/Msg_Export/src/utils.h @@ -57,7 +57,7 @@ void ShowDebugInfo(); bool bIsExportEnabled(MCONTACT hContact);
HANDLE openCreateFile(tstring sFilePath);
-bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, tstring sFilePath);
+bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, tstring sFilePath, bool bAppendOnly);
int nExportEvent(WPARAM wparam, LPARAM lparam);
int nContactDeleted(WPARAM wparam, LPARAM lparam);
|