Click here to Skip to main content
15,892,737 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Weirdness with the C# editor in VS. Pin
Richard Deeming18-Sep-19 0:42
mveRichard Deeming18-Sep-19 0:42 
GeneralRe: Weirdness with the C# editor in VS. Pin
kalberts18-Sep-19 1:15
kalberts18-Sep-19 1:15 
GeneralRe: Weirdness with the C# editor in VS. Pin
honey the codewitch18-Sep-19 1:47
mvahoney the codewitch18-Sep-19 1:47 
GeneralDataTable to Model/ViewModel Generator - Part 3 Pin
#realJSOP17-Sep-19 7:56
mve#realJSOP17-Sep-19 7:56 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
honey the codewitch17-Sep-19 8:00
mvahoney the codewitch17-Sep-19 8:00 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
#realJSOP17-Sep-19 8:39
mve#realJSOP17-Sep-19 8:39 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
honey the codewitch17-Sep-19 8:40
mvahoney the codewitch17-Sep-19 8:40 
RantWhy microsoft, why? Pin
honey the codewitch17-Sep-19 7:42
mvahoney the codewitch17-Sep-19 7:42 
So in Microsoft's KwData package they implement a B+ tree.

However, roughly:

C#
class Node {
    Node Parent;
    IList<KeyValuePair<int,Node>> ChildEntries;
}

instead of
C#
class Node {
    WeakReference<Node> Parent;
    IList<KeyValuePair<int,Node>> ChildEntries;
}

Meanwhile, they've implemented custom enumerators for a 5%-10% gain in performance.

While putting all this undue strain on the garbage collector via mutually entangled references (Parent)

So it's not so much that they didn't optimize, but they didn't optimize consistently and in this case they're being pennywise and pound-foolish.

This isn't the only area for improvement. Problems like this exist all over the code.

And here I was wondering why such an ostensibly optimized class was behaving so poorly.

Needless to say, I'm starting over from scratch, rolling my own now that I know how they work.

I can't believe they'd do this. It's ridiculous.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 17-Sep-19 13:59pm.

GeneralRe: Why microsoft, why? Pin
Marc Clifton17-Sep-19 8:25
mvaMarc Clifton17-Sep-19 8:25 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 8:25
mvahoney the codewitch17-Sep-19 8:25 
GeneralRe: Why microsoft, why? Pin
Jörgen Andersson17-Sep-19 8:50
professionalJörgen Andersson17-Sep-19 8:50 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 8:58
mvahoney the codewitch17-Sep-19 8:58 
GeneralRe: Why microsoft, why? Pin
Jörgen Andersson17-Sep-19 9:09
professionalJörgen Andersson17-Sep-19 9:09 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 9:42
mvahoney the codewitch17-Sep-19 9:42 
GeneralCPPCon keynote video... Pin
Maximilien17-Sep-19 6:11
Maximilien17-Sep-19 6:11 
GeneralProgramming bidding website Pin
Dan Sutton17-Sep-19 5:57
Dan Sutton17-Sep-19 5:57 
GeneralRe: Programming bidding website Pin
dandy7217-Sep-19 6:23
dandy7217-Sep-19 6:23 
GeneralRe: Programming bidding website Pin
Dan Sutton17-Sep-19 7:19
Dan Sutton17-Sep-19 7:19 
GeneralRe: Programming bidding website Pin
Munchies_Matt17-Sep-19 6:31
Munchies_Matt17-Sep-19 6:31 
GeneralRe: Programming bidding website Pin
RickZeeland17-Sep-19 6:39
mveRickZeeland17-Sep-19 6:39 
GeneralRe: Programming bidding website Pin
dandy7217-Sep-19 7:11
dandy7217-Sep-19 7:11 
GeneralRe: Programming bidding website Pin
Dan Sutton17-Sep-19 7:20
Dan Sutton17-Sep-19 7:20 
GeneralRe: Programming bidding website Pin
PIEBALDconsult17-Sep-19 7:08
mvePIEBALDconsult17-Sep-19 7:08 
GeneralRe: Programming bidding website Pin
OriginalGriff17-Sep-19 7:20
mveOriginalGriff17-Sep-19 7:20 
GeneralRe: Programming bidding website Pin
Keviniano Gayo18-Sep-19 0:05
Keviniano Gayo18-Sep-19 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.