Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Bug reports => Topic started by: Vulpix on 22 04 2016, 23:07:55

Title: MsgExport is very slow
Post by: Vulpix on 22 04 2016, 23:07:55
Hello!

I'm curious if it would be possible to improve MsgExport plugin. Currently, it takes simply way too long. I feel this is because the export plugin seems to write in very small chunks and it constantly closes and reopens the file. This causes journal updates as well as other unwanted phenomenons. As an example, it takes almost 15 minutes to export all of my history (~193MB file).

There should be a way of having the export plugin just allocate a memory buffer, sort and prepare a full batch of data and then flush it into a file in a single go.

For example see below what's happening during one of the exports:

(https://forum.miranda-ng.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FiPbtRME.png&hash=4ed8290d6f30c6186a9dc6e8a939fa61dd67602a)