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
There are numerous places that performance of the class could be improved.
A basic search of all the Contains methods would make this obvious, but for this particular instance, the following was giving a massive performance hit.
When running CreateBussinessObject() the following method gets slower and slower each time you add a BO:
private void AddCreatedBusinessObject(TBusinessObject newBO)
{
if (!this.CreatedBusinessObjects.Contains(newBO))
{
CreatedBusinessObjects.Add(newBO);
}
if (this.Contains(newBO)) return;
AddWithoutEvents(newBO);
}
If you are doing a batch update of properties, the following method gets slower the larger your collection gets.
I think it should only be necessary to do any of the stuff if an event handler is registered.
Redmine Issue #1395
There are numerous places that performance of the class could be improved.
A basic search of all the Contains methods would make this obvious, but for this particular instance, the following was giving a massive performance hit.
When running CreateBussinessObject() the following method gets slower and slower each time you add a BO:
If you are doing a batch update of properties, the following method gets slower the larger your collection gets.
I think it should only be necessary to do any of the stuff if an event handler is registered.
The text was updated successfully, but these errors were encountered: