Click here to Skip to main content
14,485,669 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: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
Slacker0072-Jan-20 9:34
professionalSlacker0072-Jan-20 9:34 
GeneralRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
BillWoodruff3-Jan-20 1:25
mveBillWoodruff3-Jan-20 1:25 
GeneralRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
Eddy Vluggen2-Jan-20 10:49
professionalEddy Vluggen2-Jan-20 10:49 
GeneralRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
BillWoodruff3-Jan-20 1:30
mveBillWoodruff3-Jan-20 1:30 
GeneralRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
Eddy Vluggen3-Jan-20 1:49
professionalEddy Vluggen3-Jan-20 1:49 
JokeRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
Daniel Pfeffer2-Jan-20 23:56
professionalDaniel Pfeffer2-Jan-20 23:56 
GeneralRe: my apologies to the CodeProject community for a recent inappropriate Lounge post Pin
BillWoodruff3-Jan-20 1:32
mveBillWoodruff3-Jan-20 1:32 
Generalfigured out something cool, a specialization for integer binary trees Pin
honey the codewitch2-Jan-20 4:23
mvahoney the codewitch2-Jan-20 4:23 
I think I figured out how to make binary trees that hold ints more efficient in .NET by storing them as a contiguous packed array of integers, where each 3 elements represents a kind of "tuple". The left of the 3 is the index of the left node, the center of the 3 is the value, and the right of the 3 is the index of the right node. I can save lots of allocations that way, and reordering the tree should be a lot quicker since i don't really have to move everything, just change some indices.

with a separate array for the values it could hold any type.

cool. imma try it.
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.

GeneralRe: figured out something cool, a specialization for integer binary trees Pin
W Balboos, GHB2-Jan-20 4:33
mveW Balboos, GHB2-Jan-20 4:33 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
honey the codewitch2-Jan-20 4:36
mvahoney the codewitch2-Jan-20 4:36 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
Member 79891222-Jan-20 7:34
MemberMember 79891222-Jan-20 7:34 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
honey the codewitch2-Jan-20 7:41
mvahoney the codewitch2-Jan-20 7:41 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
Jörgen Andersson2-Jan-20 5:51
professionalJörgen Andersson2-Jan-20 5:51 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
honey the codewitch2-Jan-20 5:53
mvahoney the codewitch2-Jan-20 5:53 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
Shuqian Ying2-Jan-20 8:59
MemberShuqian Ying2-Jan-20 8:59 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
Daniel Pfeffer3-Jan-20 0:02
professionalDaniel Pfeffer3-Jan-20 0:02 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
Member 79891222-Jan-20 6:12
MemberMember 79891222-Jan-20 6:12 
GeneralRe: figured out something cool, a specialization for integer binary trees Pin
honey the codewitch2-Jan-20 6:13
mvahoney the codewitch2-Jan-20 6:13 
GeneralComing back to work after a long vacation feels weird. Pin
Maximilien2-Jan-20 2:59
MemberMaximilien2-Jan-20 2:59 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
musefan2-Jan-20 3:02
Membermusefan2-Jan-20 3:02 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
OriginalGriff2-Jan-20 3:13
mveOriginalGriff2-Jan-20 3:13 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
musefan2-Jan-20 3:57
Membermusefan2-Jan-20 3:57 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
honey the codewitch2-Jan-20 4:27
mvahoney the codewitch2-Jan-20 4:27 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
OriginalGriff2-Jan-20 4:37
mveOriginalGriff2-Jan-20 4:37 
GeneralRe: Coming back to work after a long vacation feels weird. Pin
honey the codewitch2-Jan-20 4:38
mvahoney the codewitch2-Jan-20 4:38 

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.