Ticket S137327
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Core - Improve XPObjectSpace performance when processing large amounts of data

Improve performance of ObjectSpace with >10000 modified objects

created 14 years ago

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

Comments (3)
SZ SZ
Sergey Zaitsev (Xafari Team) 14 years ago

    screen short with tests execution time

      We share this experience still now after 8 years. Is there an official answer from DevExpress?

      Dennis Garavsky (DevExpress) 7 years ago

        @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.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.