Click here to Skip to main content
14,367,300 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 1:42
mveRichard Deeming18-Sep-19 1:42 
GeneralRe: Weirdness with the C# editor in VS. Pin
Member 798912218-Sep-19 2:15
memberMember 798912218-Sep-19 2:15 
GeneralRe: Weirdness with the C# editor in VS. Pin
honey the codewitch18-Sep-19 2:47
memberhoney the codewitch18-Sep-19 2:47 
GeneralDataTable to Model/ViewModel Generator - Part 3 Pin
#realJSOP17-Sep-19 8:56
mve#realJSOP17-Sep-19 8:56 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
honey the codewitch17-Sep-19 9:00
memberhoney the codewitch17-Sep-19 9:00 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
#realJSOP17-Sep-19 9:39
mve#realJSOP17-Sep-19 9:39 
GeneralRe: DataTable to Model/ViewModel Generator - Part 3 Pin
honey the codewitch17-Sep-19 9:40
memberhoney the codewitch17-Sep-19 9:40 
RantWhy microsoft, why? Pin
honey the codewitch17-Sep-19 8:42
memberhoney the codewitch17-Sep-19 8:42 
So in Microsoft's KwData package they implement a B+ tree.

However, roughly:

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

instead of
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 9:25
protectorMarc Clifton17-Sep-19 9:25 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 9:25
memberhoney the codewitch17-Sep-19 9:25 
GeneralRe: Why microsoft, why? Pin
Jörgen Andersson17-Sep-19 9:50
protectorJörgen Andersson17-Sep-19 9:50 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 9:58
memberhoney the codewitch17-Sep-19 9:58 
GeneralRe: Why microsoft, why? Pin
Jörgen Andersson17-Sep-19 10:09
protectorJörgen Andersson17-Sep-19 10:09 
GeneralRe: Why microsoft, why? Pin
honey the codewitch17-Sep-19 10:42
memberhoney the codewitch17-Sep-19 10:42 
GeneralCPPCon keynote video... Pin
Maximilien17-Sep-19 7:11
memberMaximilien17-Sep-19 7:11 
GeneralProgramming bidding website Pin
Dan Sutton17-Sep-19 6:57
memberDan Sutton17-Sep-19 6:57 
GeneralRe: Programming bidding website Pin
dandy7217-Sep-19 7:23
memberdandy7217-Sep-19 7:23 
GeneralRe: Programming bidding website Pin
Dan Sutton17-Sep-19 8:19
memberDan Sutton17-Sep-19 8:19 
GeneralRe: Programming bidding website Pin
Munchies_Matt17-Sep-19 7:31
memberMunchies_Matt17-Sep-19 7:31 
GeneralRe: Programming bidding website Pin
RickZeeland17-Sep-19 7:39
mveRickZeeland17-Sep-19 7:39 
GeneralRe: Programming bidding website Pin
dandy7217-Sep-19 8:11
memberdandy7217-Sep-19 8:11 
GeneralRe: Programming bidding website Pin
Dan Sutton17-Sep-19 8:20
memberDan Sutton17-Sep-19 8:20 
GeneralRe: Programming bidding website Pin
PIEBALDconsult17-Sep-19 8:08
protectorPIEBALDconsult17-Sep-19 8:08 
GeneralRe: Programming bidding website Pin
OriginalGriff17-Sep-19 8:20
protectorOriginalGriff17-Sep-19 8:20 
GeneralRe: Programming bidding website Pin
Keviniano Gayo18-Sep-19 1:05
memberKeviniano Gayo18-Sep-19 1: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.