I try to create 100000 objects into one ObjectSpace instance, my code work very slowly after 10000 iterations.
I found that after creating persitent object by ObjectSpace.CreateObject() method ObjectSpace.SetModified(object) calls every time.
And ObjectSpace collects all modified objects into internal ArrayList objectsToSave.
If ArrayList will be replaced by, for example, Dictionary or Hashtable performance will be improved.
See attached test project to compare ArrayList, Dictionary and Hashtable
We have closed this ticket because another page addresses its subject:
Core - Improve XPObjectSpace performance when processing large amounts of data
screen short with tests execution time
We share this experience still now after 8 years. Is there an official answer from DevExpress?
@fMerian: As stated in the duplicate Q523295 ticket, we addressed this more than 5 years ago. If you have any performance problems with the latest XAF versions, please submit a separate ticket using the https://www.devexpress.com/ask service. We will be more than happy to research your specific use-case scenario, a debuggable sample and your profiling results. Thanks.