Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7408107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:51:09+00:00 2026-05-29T05:51:09+00:00

In terms of speed and the amount of notifications generated , is this code:

  • 0

In terms of speed and the amount of notifications generated, is this code:

ObservableCollection<Foo> foo = new ObservableCollection<Foo>(bar);
this.SomeProperty = foo;

the same as:

this.SomeProperty = new ObservableCollection<Foo>();

foreach (var v in bar) 
{
    this.SomeProperty.Add(v);
}

If they are the same, is it possible to somehow turn off the notifications generated?

Objective:
I’m trying to speed up the display of Telerik RadChart in silverlight. It seems to take a while to display (and freezes the in browser app) even after the property containing ObservableCollection is set. Once the chart is drawn everything works correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:51:10+00:00Added an answer on May 29, 2026 at 5:51 am
    1. Profile it or Test it! According to the docs, the
      PropertyChanged event occcurs when an item is added, removed,
      changed, moved, or the entire list is refreshed. You can therefore
      write some test code that just subscribes to this event and see what
      happens.

    2. Fast performing and thread safe observable collection – if it is due to a constant barrage of OnChanged events, consider only firing after a bulk update – someone has done this work for you already

    3. http://www.telerik.com/help/silverlight/radchart-performance-tips-and-tricks.html
      deals specifically with the scenario you describe about half way down the page. Their conclusion is the same as 2 – in fact, the code looks very similar 🙂

    If the freeze is occuring before the binding actually takes place, then I’d make sure that the delay isn’t actually rendering based or because of another actvity (like the time taken to load the collection). Again, profiling is your friend.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the best in terms of speed and performance? To call the function each
What is the best Lua OOP library in terms of speed, syntax convenience, LOC
It's my understanding that, in terms of selector speed, that #ID selectors are fastest,
In terms of speed/memory efficiency, does it make sense to save an element (retrieved
From a pure speed perspective of compiled code, does it make a difference if
I was wondering about the feasibility (in terms of speed, etc) of retrieving the
I've spend a fair amount of time on website optimization (YSlow, Google's Page Speed,
In terms of: Speed Required processing (which will influence speed) Following standards Which of
Which is the best implementation(in terms of speed and memory usage) for iterating through
Just wanted to know what is the best approach (in terms of speed and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.