|
What is the best optimal way of finding whether any element is repeated in a given array?
Answer Snippets (Read the full thread at stackoverflow):
Another.
Other answers mention hashtables, and are actually optimal since it gets the job done in O(n).
|
|
What is the most optimal way to achieve the same as this?
void foo(double floatValue, char* stringResult) { sprintf(stringResult, "%f", floatValue); }
Started by David Dolson on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
You may prefer snprintf.
I'd say sprintf is pretty much the optimal way.
Inserted (not just doubles).
|
|
What is the optimal freeheap to totalheap ratio? At what values of this ratio should I consider increasing the heap size/ decreasing the heap size?
Answer Snippets (Read the full thread at stackoverflow):
That's a very hard target to reach ;)
The problem (as TNilsson points out) is that your application's memory requirements change over ... .
Ideally, your JVM would consume exactly the memory it required, no more and no less .
The ideal momentary ratio is 1.
|
Ask your Facebook Friends
|
Hello!
What are optimal settings for Recycling of Application Pools in IIS7 in shared environment?
Thanks in advance
Started by GrZeCh on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How about using ASP.NET StateService? This solution is reliable and can be set as default?
If you have a heavy traffic site, use... .
So caution on this!
IMHO, keep the defaults.
Tip: When you recycle your app, all your session variables are destroyed.. .
|
|
What is the optimal productivity stack for developers?
When deciding what to include in your personal productivity stack, what criteria do you use?
Started by happyappa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The optimal stack for developers doesn't exist, mainly for the simple reason that different.
|
|
What is the optimal size of a software development team? or Does size really matter?
It seems to be subjective, but my intention is to know 'What are the metrics' which decides team size?.
Started by LittleBoy on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
The optimal size of a software development team.
Recently Jurgen has posted that the optimal team size is 5, but it is less on areas that have the most impact (think ROI).
Head and Art of Agile).
|
|
Hello, my question is :
How much data should be in a table so that reading is optimal? Assuming that I have 3 fields varchar(25). This is in MySQL.
Started by Agusti-N on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Agree that you should ensure that your data is properly... .
If you only have 3 varchar(25) fields, then you probably need to add a primary key that is not a varchar .
Make sure the fields your searching on are indexed properly .
Number of rows should not matter.
|
|
Using the Mysql multi insert statement (Inserting several records in one INSERT statement). Is there an optimal number for the number of records I can insert in one go, Or to the data size (bytes)?
Started by Itay Moav on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
U can defined....
You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns) .
The limit is to the size of the row , one row query is limited ,
The server's default max_allowed_packet value is 1MB .
|
|
I'm looking for the optimal way to compute a hashcode for a set of bi-dimensional points (so that I can store polygons in a hashtable).
There are some obvious ways to do that, such as concatenating all the points coordinates in a string and its hashcode...
Started by Brann on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You as optimal solution (if you do not....
It all depends on how big hash can you afford .
There is no optimal way for this job.
Performance will come of performance.
Optimal is dependent on your requirements from the hash computation.
|
|
Personal preferences aside, is there an optimal tab size (2 spaces? 3 spaces? 8 spaces?) for code readability? In the different projects I've worked on, people seem to have vastly different standards. I can't seem to read 2 space indents, but companies...
Started by sotangochips on
, 13 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
I read that 2 spaces is actually optimal, based on a study where programmers were asked to estimate the level of nesting based on indentation, ....
This way everybody can configure their editor to display.
The optimal tab size is "one tab".
|