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

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: