Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 61048

Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.

0 votes

Showing the path of a projectile

Since your output is calculated directly from the values in your for statements, I would say that this is fine. If you were using the for loops to iterate over collections, then you would have differ …
moarboilerplate's user avatar
2 votes

Grouping two sets of data

Your performance is going to suffer until you can create a "WHERE IN"-style query for users, either by building a string or by combining Expressions. …
moarboilerplate's user avatar
16 votes
Accepted

I had one job to do

I would say yes, there is value in removing the foreach loop, because your code will more appropriately mirror what you're expecting to happen versus what can happen. It's unclear to someone looking a …
moarboilerplate's user avatar
4 votes

Finding the busiest time-frame in a parking lot

You have an issue where if a car parks for a really long time, your method will probably return that timespan, which might not be very useful if it is pretty much the entire time your lot is open. I …
moarboilerplate's user avatar