mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 12:28:13 -04:00
docs(block_merger): add TODO about holder lifetime
This commit is contained in:
parent
6ca388fa6b
commit
c2ceeee9bd
@ -86,6 +86,12 @@ class block_merger_whole_block_policy {
|
||||
* can be useful to keep an upper bound on the memory usage of the merger.
|
||||
* It is even possible to only partially release a block, e.g. after the
|
||||
* block has been compressed.
|
||||
*
|
||||
* TODO: The lifetime of block holders should be extended to before adding
|
||||
* a block to the merger. This would allow the merger to block even
|
||||
* before a block is added (which already consumes resources at that
|
||||
* point). It would also allow blocks to change size while being
|
||||
* processed by the merger.
|
||||
*/
|
||||
template <typename SourceT, typename BlockT,
|
||||
typename BlockPolicy = block_merger_whole_block_policy>
|
||||
|
Loading…
x
Reference in New Issue
Block a user