-
Notifications
You must be signed in to change notification settings - Fork 176
Closed
Labels
Type: TaskDiscrete task to implementDiscrete task to implement
Description
Summary
There is a suspiciously long lock here
forest/src/message_pool/msgpool/msg_pool.rs
Lines 246 to 253 in 92ee2fb
pub fn add(&self, msg: SignedMessage) -> Result<(), Error> { | |
self.check_message(&msg)?; | |
let tip = self.cur_tipset.lock().clone(); | |
self.add_tipset(msg, &tip, false)?; | |
Ok(()) | |
} |
In Lotus, there are some optimisations around it.
This would explain long running mpool tests where ~10k messages are added (which shouldn't be that much, especially on a decent hardware; but it still takes well over 30s).
Completion Criteria
- Identify locks in the mentioned implementation and reduce the contention time.
Additional Links & Resources
Metadata
Metadata
Assignees
Labels
Type: TaskDiscrete task to implementDiscrete task to implement
Type
Projects
Status
Done