2
\$\begingroup\$

This question was originally only asking for performance measurement tools. It has since been modified somewhat to ask for something closer to a review, but neither of the answers address this.

So:

  1. Was the question on-topic in its original form?
  2. Should the answers be flagged as irrelevant? (Neither is a code review, in my opinion.)
\$\endgroup\$
1

2 Answers 2

3
\$\begingroup\$

As the moderator who responded to your flag, it was correct. The original question did seem to ask for information on how to profile the application (off topic). However, I saw a good review question - performance is explicitly on topic. So I edited the title to ask for a performance review rather than a "how do I.." question.

Now, concerning the answers: I agree that the answers provided thus far don't really answer the question. That is cause for downvotes. My criteria for "Not an answer" is that the answer does not provide a solution, i.e., asks a question which should be in a comment or is merely a useless linky answer. Both of these I will convert to comments if I see them or respond to a flag. If I judge the link is irrelevant (not necessarily spam, but completely irrelevant to the question) I may delete it outright. Generally I err toward comment conversion.

tl;dr: You are correct; the current answers don't really answer the question. They should be downvoted. If more attention to the question is needed, a bounty could be posted or the question could be edited to be more specific, which would bump it to the top of the front page.

\$\endgroup\$
3
\$\begingroup\$

I don't think the OP was asking about how to use profiling tools. The question was How do i I find the bottlenecks in my code? My read on it is that the OP wanted help finding his bottlenecks which would in fact be on-topic here.

Flagging doesn't do anything besides have me or another moderator have to decide what to do with the question. So flagging really isn't action to take, its a request for moderators to take action. What do you think the moderators should do to those answers?

IMO, the underlying problem here is that programming contest questions don't lend themselves to real code reviews. The kind of stuff I'd normally complain about in code simply doesn't apply to a programming contest problem.

\$\endgroup\$
4
  • \$\begingroup\$ Apologies if I was misusing the flagging system; I think I mistook it for the voting system. If the OP was asking for bottlenecks in his code, I agree that the question is on-topic; the answers, on the other hand, don't seem to be. One is a suggestion about a profiling tool, and the other is a review of the problem, but neither relate to the posted code in any way. On the other hand, it seems strange to downvote them as the OP seems happy with the answers. All in all, I can't see a way for both the question to be on-topic and the answers to be relevant. \$\endgroup\$ Feb 1, 2012 at 18:46
  • \$\begingroup\$ @AntonGolov, I agree with your concerns. But I'm not sure how else to handle the question. \$\endgroup\$ Feb 1, 2012 at 19:15
  • \$\begingroup\$ Well, part of what I'm hoping to achieve with this question is getting some opinions on whether there is no problem, or, if there is, whether it's the asker or the answerers at fault. \$\endgroup\$ Feb 1, 2012 at 19:20
  • \$\begingroup\$ @AntonGolov, I think its a bad question for reasons discussed in the question I linked. \$\endgroup\$ Feb 1, 2012 at 19:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .