You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mergeFiles doesn't clean up the last Mempool if there's an error.
It creates a memory pool, then every few hundred iterations it creates a new one and copies data over.
It's hard to bracket because the memory pools aren't lexically scoped.
The solution is to store the current iteration state in an IORef or something, so that the bracket end function can read the IORef and free the most recent Mempool.
The text was updated successfully, but these errors were encountered:
mergeFiles
doesn't clean up the last Mempool if there's an error.It creates a memory pool, then every few hundred iterations it creates a new one and copies data over.
It's hard to bracket because the memory pools aren't lexically scoped.
The solution is to store the current iteration state in an IORef or something, so that the bracket end function can read the IORef and free the most recent Mempool.
The text was updated successfully, but these errors were encountered: