Click here to Skip to main content
15,892,674 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.

 
AnswerRe: code performance idea in team environment Pin
Super Lloyd17-Jan-17 14:55
Super Lloyd17-Jan-17 14:55 
GeneralRe: code performance idea in team environment Pin
_groo_18-Jan-17 1:44
_groo_18-Jan-17 1:44 
GeneralRe: code performance idea in team environment Pin
Super Lloyd18-Jan-17 3:23
Super Lloyd18-Jan-17 3:23 
GeneralRe: code performance idea in team environment Pin
Brisingr Aerowing17-Jan-17 15:11
professionalBrisingr Aerowing17-Jan-17 15:11 
GeneralRe: code performance idea in team environment Pin
Super Lloyd17-Jan-17 15:15
Super Lloyd17-Jan-17 15:15 
GeneralRe: code performance idea in team environment Pin
Sander Rossel17-Jan-17 21:45
professionalSander Rossel17-Jan-17 21:45 
GeneralRe: code performance idea in team environment Pin
Super Lloyd17-Jan-17 22:43
Super Lloyd17-Jan-17 22:43 
GeneralRe: code performance idea in team environment Pin
Sander Rossel17-Jan-17 22:59
professionalSander Rossel17-Jan-17 22:59 
Ah, didn't see your implementation yet.
The using statement certainly makes it better than what I've seen, although using a callback means you can also log any input and output parameters (which is what the code I came across also did).
I'm not a fan of AOP, it caused me more trouble than added benefit.

I am curious though, why not put the timing in a unit test?
That way you can test your code for speed without actually touching your code, but your build will still break.
Of course you won't have the benefit of the log statement in production (but how often do you check that, really?).

GeneralRe: code performance idea in team environment Pin
Super Lloyd17-Jan-17 23:27
Super Lloyd17-Jan-17 23:27 
GeneralRe: code performance idea in team environment Pin
Super Lloyd17-Jan-17 23:30
Super Lloyd17-Jan-17 23:30 
GeneralRe: code performance idea in team environment Pin
den2k8817-Jan-17 23:54
professionalden2k8817-Jan-17 23:54 
GeneralRe: code performance idea in team environment Pin
Super Lloyd18-Jan-17 3:25
Super Lloyd18-Jan-17 3:25 
GeneralRe: code performance idea in team environment Pin
BillWoodruff18-Jan-17 5:09
professionalBillWoodruff18-Jan-17 5:09 
GeneralRe: code performance idea in team environment Pin
Sander Rossel18-Jan-17 5:15
professionalSander Rossel18-Jan-17 5:15 
GeneralRe: code performance idea in team environment Pin
patbob18-Jan-17 4:49
patbob18-Jan-17 4:49 
NewsFired IT worker wants $200K to release former employer's changed password Pin
Cornelius Henning17-Jan-17 10:05
professionalCornelius Henning17-Jan-17 10:05 
GeneralRe: Fired IT worker wants $200K to release former employer's changed password Pin
Jon McKee17-Jan-17 10:16
professionalJon McKee17-Jan-17 10:16 
GeneralRe: Fired IT worker wants $200K to release former employer's changed password Pin
Cornelius Henning17-Jan-17 10:26
professionalCornelius Henning17-Jan-17 10:26 
GeneralI nearly fell for one of these Pin
Cornelius Henning17-Jan-17 7:30
professionalCornelius Henning17-Jan-17 7:30 
GeneralRe: I neatly fell for one of these Pin
Eddy Vluggen17-Jan-17 7:37
professionalEddy Vluggen17-Jan-17 7:37 
GeneralRe: I neatly fell for one of these Pin
TheGreatAndPowerfulOz17-Jan-17 7:44
TheGreatAndPowerfulOz17-Jan-17 7:44 
GeneralRe: I neatly fell for one of these Pin
Eddy Vluggen17-Jan-17 8:00
professionalEddy Vluggen17-Jan-17 8:00 
GeneralRe: I neatly fell for one of these Pin
Fabio Franco18-Jan-17 0:05
professionalFabio Franco18-Jan-17 0:05 
GeneralRe: I neatly fell for one of these Pin
raddevus17-Jan-17 7:50
mvaraddevus17-Jan-17 7:50 
GeneralRe: I neatly fell for one of these Pin
Cornelius Henning17-Jan-17 7:54
professionalCornelius Henning17-Jan-17 7:54 

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.