Click here to Skip to main content
15,893,668 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: An opinion on naming Pin
honey the codewitch5-Dec-19 8:04
mvahoney the codewitch5-Dec-19 8:04 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:25
professionalSander Rossel5-Dec-19 8:25 
AnswerRe: An opinion on naming Pin
Marc Clifton5-Dec-19 8:07
mvaMarc Clifton5-Dec-19 8:07 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:09
mvahoney the codewitch5-Dec-19 8:09 
AnswerRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:39
professionalSander Rossel5-Dec-19 8:39 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:40
mvahoney the codewitch5-Dec-19 8:40 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:50
professionalSander Rossel5-Dec-19 8:50 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:53
mvahoney the codewitch5-Dec-19 8:53 
I misread your code. I thought you were just enumerating until you found the item.

Anyway, I'm not sure that would be faster. See based on what I know from the reference source, there's no reallocations taking place with your technique. It's just setting array elements and incrementing some integers.

Reflection can be kinda nasty. I'd have to profile. It definitely depends on the number of items in the queue as well, but for what I'm currently using it for, it shouldn't be more than a half dozen to a couple dozen items.
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: An opinion on naming Pin
Sander Rossel5-Dec-19 9:13
professionalSander Rossel5-Dec-19 9:13 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 9:27
mvahoney the codewitch5-Dec-19 9:27 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 10:18
professionalSander Rossel5-Dec-19 10:18 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 10:28
mvahoney the codewitch5-Dec-19 10:28 
AnswerRe: An opinion on naming Pin
Rick York5-Dec-19 10:44
mveRick York5-Dec-19 10:44 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 10:45
mvahoney the codewitch5-Dec-19 10:45 
GeneralRe: An opinion on naming Pin
Rick York5-Dec-19 14:49
mveRick York5-Dec-19 14:49 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 14:51
mvahoney the codewitch5-Dec-19 14:51 
AnswerRe: An opinion on naming Pin
AFell25-Dec-19 11:51
AFell25-Dec-19 11:51 
GeneralCannot see items in an STL container in VS2017 Pin
Greg Utas5-Dec-19 7:09
professionalGreg Utas5-Dec-19 7:09 
GeneralRe: Cannot see items in an STL container in VS2017 Pin
Richard MacCutchan5-Dec-19 7:46
mveRichard MacCutchan5-Dec-19 7:46 
GeneralRe: Cannot see items in an STL container in VS2017 Pin
Greg Utas5-Dec-19 7:59
professionalGreg Utas5-Dec-19 7:59 
GeneralKeyboard recommendations Pin
Mike Hankey5-Dec-19 5:20
mveMike Hankey5-Dec-19 5:20 
GeneralRe: Keyboard recommendations Pin
PIEBALDconsult5-Dec-19 5:27
mvePIEBALDconsult5-Dec-19 5:27 
GeneralRe: Keyboard recommendations Pin
Mike Hankey5-Dec-19 5:49
mveMike Hankey5-Dec-19 5:49 
AnswerRe: Keyboard recommendations Pin
lopatir5-Dec-19 5:29
lopatir5-Dec-19 5:29 
GeneralRe: Keyboard recommendations Pin
Joan M5-Dec-19 6:24
professionalJoan M5-Dec-19 6:24 

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.