mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 07:10:12 -04:00
changed std::vector into std::set in notification system, hence removing lots of std::find(std::vector::begin(),std::vector::end(),T), causing quadratic costs in multiple places.
This commit is contained in:
parent
6139632378
commit
84699db744
36 changed files with 208 additions and 272 deletions
|
@ -2132,12 +2132,12 @@ void IdDialog::updateDisplay(bool complete)
|
|||
}
|
||||
requestCircleGroupMeta();
|
||||
|
||||
std::list<RsGxsGroupId> grpIds;
|
||||
std::set<RsGxsGroupId> grpIds;
|
||||
getAllGrpIds(grpIds);
|
||||
if (!getGrpIds().empty()) {
|
||||
requestIdList();
|
||||
|
||||
if (!mId.isNull() && std::find(grpIds.begin(), grpIds.end(), mId) != grpIds.end()) {
|
||||
if (!mId.isNull() && grpIds.find(mId)!=grpIds.end()) {
|
||||
requestIdDetails();
|
||||
requestRepList();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue