Skip to main content
20 events
when toggle format what by license comment
Nov 6, 2014 at 19:55 history edited Jamal CC BY-SA 3.0
edited tags; edited title
May 26, 2014 at 16:03 answer added Veedrac timeline score: 2
Apr 5, 2014 at 23:36 history edited Jamal CC BY-SA 3.0
added 9 characters in body; edited tags
Feb 27, 2014 at 4:41 history tweeted twitter.com/#!/StackCodeReview/status/438896659159076864
Feb 27, 2014 at 3:06 comment added Russell Borogove You say "I wrote it on C#, because it's compiled"; Python is also normally compiled.
Feb 26, 2014 at 16:12 comment added Eric Lippert @agentnega: You see what you're doing there, right? You are guessing. Your guesses are good, educated guesses that are probably right, but they are still guesses. For all we know the reason that the C# program is slow is because there's something wrong with the Console.WriteLine causing the output to block or some such thing. I have profiled a lot of C# programs in my day and very frequently -- well over 10% of the time -- my initial guess about the cause of a slowdown is utterly wrong. Engineers solve problems by reasoning about facts, not guesses.
Feb 26, 2014 at 15:57 comment added agentnega @EricLippert, sage advice, certainly -- but in this particular case would profiling actually help? He'd see that all the time is spent in generate() and count() and that neither is unusually slow -- but that is not illuminating, it's precisely what we would expect to see if it was operating properly. Without understanding the consequences of repeated Random creation, the specific logical reason for why the program is so slow is elusive.
Feb 26, 2014 at 11:31 answer added Graeme Bradbury timeline score: 20
Feb 26, 2014 at 7:13 comment added Eric Lippert Use a profiler to answer a performance question. Anything else is guessing.
Feb 25, 2014 at 23:39 answer added Jesse C. Slicer timeline score: 8
Feb 25, 2014 at 22:50 comment added scotru You may find this question on StackOverflow useful as well as it discusses pros and cons of instantiating a StringBuilder object: stackoverflow.com/questions/550702/…
Feb 25, 2014 at 20:08 vote accept bobpal
Feb 25, 2014 at 20:07 vote accept bobpal
Feb 25, 2014 at 20:08
Feb 25, 2014 at 20:02 vote accept bobpal
Feb 25, 2014 at 20:07
Feb 25, 2014 at 18:47 answer added vals timeline score: 50
Feb 25, 2014 at 18:45 comment added rolfl I guess I had better get back to typing up some Macbeth!
Feb 25, 2014 at 18:41 answer added Mathieu Guindon timeline score: 20
Feb 25, 2014 at 18:36 answer added Uri Agassi timeline score: 9
Feb 25, 2014 at 18:27 review First posts
Feb 25, 2014 at 18:43
Feb 25, 2014 at 18:08 history asked bobpal CC BY-SA 3.0