Speed up vector removal
This commit is contained in:
@@ -68,7 +68,7 @@ pub fn trigger(token: &mut CleanLockToken) {
|
||||
};
|
||||
|
||||
if trigger {
|
||||
registry.remove(i).unwrap()
|
||||
registry.swap_remove_back(i).unwrap()
|
||||
} else {
|
||||
i += 1;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user