Last post Sep 11, 2015 04:37 AM by stmarti
Sep 11, 2015 04:26 AM|2xo1|LINK
asp.net.4.2 web form proj
to let siblings to know their parent - how expensive is it?
so in a month, week and day obj, month.weekArr and week.dayArr object -
to have a day.Parent,
public week weekArr;
public day dayArr;
public week parent; //<-- ???
i dont know how and what really happened there in the CLR-
but i assume the parent in day.parant.daysArr will be just pointers to an existing objects..
and not a new object - or new memory allocation..
yet i dont know what will be the best practice - for example:
- dont use stringBuilder unless you have more than 5 strings to add..
else - use string s += "xx";
dose somebody know about any performance test?
Sep 11, 2015 04:37 AM|stmarti|LINK
Just pointers, but you need to initialize the properties pointing to parents in the child constructors. There is no auto parent in clr.
Testing the performance is pointless, this won't be ever a performance problem for your app.