Click here to Skip to main content
15,887,214 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: Wordle 944 Pin
Sander Rossel18-Jan-24 21:41
professionalSander Rossel18-Jan-24 21:41 
GeneralRe: Wordle 944 Pin
GuyThiebaut18-Jan-24 22:43
professionalGuyThiebaut18-Jan-24 22:43 
GeneralRe: Wordle 944 Pin
Cp-Coder19-Jan-24 1:29
Cp-Coder19-Jan-24 1:29 
GeneralRe: Wordle 944 (3/6) Pin
Jeremy Falcon19-Jan-24 6:55
professionalJeremy Falcon19-Jan-24 6:55 
GeneralIn .NET enumeration is slow Pin
honey the codewitch18-Jan-24 7:52
mvahoney the codewitch18-Jan-24 7:52 
AnswerRe: In .NET enumeration is slow PinPopular
Eddy Vluggen18-Jan-24 8:04
professionalEddy Vluggen18-Jan-24 8:04 
GeneralRe: In .NET enumeration is slow PinPopular
honey the codewitch18-Jan-24 8:09
mvahoney the codewitch18-Jan-24 8:09 
GeneralRe: In .NET enumeration is slow Pin
Eddy Vluggen18-Jan-24 15:14
professionalEddy Vluggen18-Jan-24 15:14 
30% in overall execution time? Does your code consist mostly of enumerations and while loops?

No, it doesn't go from 90 to 60, unless all your code is enumerate. Real world code is more than just retrieving a list. Sorry Honey.

VS shows you the place where it spends most time. "Limited knowledge trans...", aight, you're allowed to your views, I have mine.

And yes, mucking about a for loop vs enumerable in an VB6 runtime (which .NET IS) is not even a microoptimization, it is purely whining. Write in a goddamn real language if it is that important an link to it from .NET where you need it.

You have fallen, my angel, and very deep. Time critical stuff isn't worth .NET, and it isn't worth my time to read about 20 ms savings in a different loop that is less readable.

When the situation calls for it, you want someone who works with pointers, not with .NET. I would write a library for you to link to that does the heavy lifting, "if the situation calls for it". Because .NET is just an evolution of VB6, it is just a runtime interpreting with a memory manager. It is vbruntime600 with additional libraries. Any compiled language with pointers laughs out loud.

This is not even an argument honey.

EVERYONE can use a profiler and see how much your micro optimization may help them. If it does, then yay for them for writing ineffcient code.

My code does not consist of merely enumerations, it deals with a lot more stuff. Real world code consist of more than "looping".

And if speed is that paramount then why are you using .NET? Are you really blabbing about how to do a for loop in a VB-variant? That is what C# is, VB6 in a new interface, but that translates 1 on 1 to VB. You really whining about the performance of BASIC code (by any other syntax, but still a rose/VB)?

And you prove it by throwing some unreadable code, that saves me 20 ms? That is going to impress, really. You will shave of some ms, sacrificing readability for some code that takes more than 2 secs? Did you know that humans only see 48 frames per second? The END USER will not even notice, but the manager that pays someone to update your code WILL.

You're gonna go far kid.
Bastard Programmer from Hell Suspicious | :suss:
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 15:39
mvahoney the codewitch18-Jan-24 15:39 
AnswerRe: In .NET enumeration is slow Pin
Eddy Vluggen18-Jan-24 16:05
professionalEddy Vluggen18-Jan-24 16:05 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 16:15
mvahoney the codewitch18-Jan-24 16:15 
GeneralRe: In .NET enumeration is slow Pin
Eddy Vluggen18-Jan-24 16:34
professionalEddy Vluggen18-Jan-24 16:34 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 17:00
mvahoney the codewitch18-Jan-24 17:00 
GeneralRe: In .NET enumeration is slow Pin
Eddy Vluggen19-Jan-24 1:21
professionalEddy Vluggen19-Jan-24 1:21 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch19-Jan-24 1:24
mvahoney the codewitch19-Jan-24 1:24 
GeneralRe: In .NET enumeration is slow Pin
MSBassSinger19-Jan-24 4:07
professionalMSBassSinger19-Jan-24 4:07 
GeneralRe: In .NET enumeration is slow Pin
jschell19-Jan-24 5:17
jschell19-Jan-24 5:17 
GeneralRe: In .NET enumeration is slow Pin
obermd19-Jan-24 3:44
obermd19-Jan-24 3:44 
GeneralRe: In .NET enumeration is slow Pin
trønderen19-Jan-24 5:44
trønderen19-Jan-24 5:44 
QuestionRe: In .NET enumeration is slow Pin
Eddy Vluggen18-Jan-24 15:54
professionalEddy Vluggen18-Jan-24 15:54 
GeneralRe: In .NET enumeration is slow Pin
englebart19-Jan-24 15:33
professionalenglebart19-Jan-24 15:33 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch19-Jan-24 16:07
mvahoney the codewitch19-Jan-24 16:07 
GeneralRe: In .NET enumeration is slow Pin
trønderen20-Jan-24 6:38
trønderen20-Jan-24 6:38 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch20-Jan-24 7:19
mvahoney the codewitch20-Jan-24 7:19 
GeneralRe: In .NET enumeration is slow Pin
trønderen20-Jan-24 8:28
trønderen20-Jan-24 8:28 

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.