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
I need to release a heap, but the partial_span in the heap is being treated as a cache and is being released using unmap.
I think the partial_span should be retained. In fact, I think when releasing, the heap should be merged into another heap instead of treating partial_span as a cache and placing it in the global cache.
The application scenario is: I have many game sessions, each using a heap. When a game ends, the heap is released. The remaining partial_span in the heap needs to be transferred to other heaps.
It is not feasible to simply put the heap into a pool and request a heap for each game session, because the number of game sessions can vary. For example, there might have been 100 game sessions an hour ago, but now there are only 20. In this case, the memory in the 80 heaps would be wasted.
The text was updated successfully, but these errors were encountered:
I need to release a heap, but the partial_span in the heap is being treated as a cache and is being released using unmap.
I think the partial_span should be retained. In fact, I think when releasing, the heap should be merged into another heap instead of treating partial_span as a cache and placing it in the global cache.
The application scenario is: I have many game sessions, each using a heap. When a game ends, the heap is released. The remaining partial_span in the heap needs to be transferred to other heaps.
It is not feasible to simply put the heap into a pool and request a heap for each game session, because the number of game sessions can vary. For example, there might have been 100 game sessions an hour ago, but now there are only 20. In this case, the memory in the 80 heaps would be wasted.
The text was updated successfully, but these errors were encountered: