Click here to Skip to main content
15,881,812 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: I am unsure whether I am lazy or sensible Pin
Richard MacCutchan20-Jun-22 23:52
mveRichard MacCutchan20-Jun-22 23:52 
GeneralRe: I am unsure whether I am lazy or sensible Pin
Daniel Pfeffer21-Jun-22 1:39
professionalDaniel Pfeffer21-Jun-22 1:39 
GeneralRe: I am unsure whether I am lazy or sensible Pin
Super Lloyd21-Jun-22 17:11
Super Lloyd21-Jun-22 17:11 
GeneralRe: I am unsure whether I am lazy or sensible Pin
englebart21-Jun-22 7:35
professionalenglebart21-Jun-22 7:35 
GeneralRe: I am unsure whether I am lazy or sensible Pin
englebart21-Jun-22 7:39
professionalenglebart21-Jun-22 7:39 
GeneralRe: I am unsure whether I am lazy or sensible Pin
Shmoken9922-Jun-22 5:31
Shmoken9922-Jun-22 5:31 
GeneralRe: I am unsure whether I am lazy or sensible Pin
rallets22-Jun-22 1:05
rallets22-Jun-22 1:05 
GeneralRe: I am unsure whether I am lazy or sensible Pin
Super Lloyd22-Jun-22 14:00
Super Lloyd22-Jun-22 14:00 
To be fair the ticket was mostly "investigate that code" and my finding was "the code is fine", my refactor was to help me understand what was going on. And I submitted it because I found it "better", but do nothing was an applicable outcome.

Anyway, after a good night sleep, I got over it and did some measurement of the various code measurement on an expensive dataset. Where Cut took about 4 seconds, and Paste took about 31 seconds.

Turns out that one little bit I thought was a performance improvement went from 1 milliseconds to, sometimes, 20 milliseconds. Peanuts, but definitely slower (I was puzzled).
Also turns out, another bit I only refactored for clarity, went down from 600 milliseconds to 175 milliseconds (and that was for the "fast operation" that only took 4 seconds, hence 10% improvement).

So those changes were a go in the end! Wink | ;)
Oh, and I also demonstrated that LINQ as it was had no performance cost (this much was obvious, but helped reduce LINQ bad performance reputation a bit, I hope)
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!

GeneralRe: I am unsure whether I am lazy or sensible Pin
jochance24-Jun-22 15:31
jochance24-Jun-22 15:31 
GeneralWSO CCC OTD 2022-06-21 Pin
OriginalGriff20-Jun-22 21:34
mveOriginalGriff20-Jun-22 21:34 
GeneralRe: WSO CCC OTD 2022-06-21 Pin
pkfox20-Jun-22 22:05
professionalpkfox20-Jun-22 22:05 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
OriginalGriff20-Jun-22 22:40
mveOriginalGriff20-Jun-22 22:40 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
pkfox20-Jun-22 23:12
professionalpkfox20-Jun-22 23:12 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
Craig Robbins21-Jun-22 0:16
Craig Robbins21-Jun-22 0:16 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
OriginalGriff21-Jun-22 0:23
mveOriginalGriff21-Jun-22 0:23 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
Craig Robbins21-Jun-22 0:27
Craig Robbins21-Jun-22 0:27 
GeneralRe: WSO CCC OTD 2022-06-21 - we have a winner! Pin
OriginalGriff21-Jun-22 0:37
mveOriginalGriff21-Jun-22 0:37 
GeneralFile transfer between two laptops Pin
Amarnath S20-Jun-22 21:28
professionalAmarnath S20-Jun-22 21:28 
GeneralRe: File transfer between two laptops Pin
CPallini20-Jun-22 21:34
mveCPallini20-Jun-22 21:34 
GeneralRe: File transfer between two laptops Pin
Amarnath S20-Jun-22 21:34
professionalAmarnath S20-Jun-22 21:34 
GeneralRe: File transfer between two laptops Pin
trønderen20-Jun-22 23:12
trønderen20-Jun-22 23:12 
GeneralRe: File transfer between two laptops Pin
CPallini21-Jun-22 0:04
mveCPallini21-Jun-22 0:04 
GeneralRe: File transfer between two laptops Pin
RickZeeland20-Jun-22 21:58
mveRickZeeland20-Jun-22 21:58 
GeneralRe: File transfer between two laptops Pin
Sander Rossel21-Jun-22 0:43
professionalSander Rossel21-Jun-22 0:43 
GeneralRe: File transfer between two laptops Pin
trønderen21-Jun-22 2:21
trønderen21-Jun-22 2:21 

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.