Java gives access to two method to get the current time: System.nanoTime() and System.currentTimeMillis(). The first one gives a result in nanoseconds, but the actual accuracy is much worse than that (many microseconds).
Is the JVM already providing the best possible value for each particular machine?
Otherwise, is there some Java libra...
Hi,
My company is in the process of rewriting an existing application from scratch. This application, among other tasks, performs complex SQL queries against order and invoice data to produce sales reports. The queries are built dynamically depending on which criteria are selected by the user, so they can be pretty complex if many crite...
I know C++ from college, vaguely. But I was reading somewhere that sometimes PHP is simply not fast enough and that real compiled code has to sometimes "Do the heavy lifting"
what is the api in C++ to do this? Or whats the best way?
I havent the slightest idea.
What I do have is so experience writing old school C++, a linux box, a C+...
So - highly hypothetical question and more like discussion about your coding style and practice you use daily.
I will take as example: CodeGear RAD Studio 2009 (sorry to all D7 fans, but Unicode rulles ).
I have capability to expand/collapse functions/procedures/records and few other complex data structures, but what if code is lengthy...
Is the performance of tomcat is reduced if we implement more filters in the web application?
...
Hi,
I am looking for an efficient data structure, that'll allow me to cue events ... that is, i will be having an app, where at any time in execution, it is possible, that an event will be raised for a future point in execution ... something like:
t=20: in 420 seconds, A occurs
t=25: in 13 seconds, B occurs
t=27: in 735 seconds, C occ...
I have a table of students:
id | age
--------
0 | 25
1 | 25
2 | 23
I want to query for all students, and an additional column that counts how many students are of the same age:
id | age | count
----------------
0 | 25 | 2
1 | 25 | 2
2 | 23 | 1
What's the most efficient way of doing this? I fear that a sub-query will be slo...
How to measure current load of MySQL server? I know I can measure different things like CPU usage, RAM usage, disk IO etc but is there a generic load measure for example the server is at 40% load etc?
...
I have just installed Ruby Enterprise Edition and would like to run some benchmarking tests against my system Ruby. Are there canonical benchmark tests I should implement?
...
What are the most easy mistakes to make that can be performance sinks on Android?
The documentation mentions "some floating point operations" can be "on the order of milliseconds" - has someone tested this?
For the sake of discussion, let's assume its running on a G1/similar device.
...
What's the easiest way to set up a cookieless domain on a WHM/Cpanel server?
And please don't answer "Don't set a cookie on your domain then", I want to ensure that even if something on the server tries to set a cookie, it won't work. If this feature is possible anyways... Thank you.
...
Typical performance of Python scripts are about 5 times faster than PHP. What are the advantages of using faster server side scripting languages? Will the speed ever be felt by website visitors? Can PHP's performance be compensated by faster server processors?
...
I'm wondering which is better for performance... I have a "web app" sort of thing. It has a lot of javascript. When a button is clicked, a hidden div becomes visible. This new div has 5 buttons. Which is better for performance:
1.) put the button click events in the html tag of each button like onClick="alert('hey');"
2.) Attach events ...
I am retrieving thousands of rows from the database, but I want to display only about 200 on one jsp. I am using pagination by creating links to the next rows.
Currently using DB2, the only thing I can do is a FETCH FIRST 200 rows. So by the time I get to the 5th page, I am doing a FETCH FIRST 1000 rows and then I am displaying 800 to 1...
Hi,
I'd like to measure the performance of code on the iPhone that runs only once, so Instrument's CPU sampler tool is of limited use, because it needs many iterations to collect enough samples.
Is there a tool that I can use that times each function on each invocation? That does call tracing instead of statistical sampling?
Regards,
...
How is the best way to do a 'running total' system like the tags search on stackoverflow? If I click on 'php' for example, its show the total amount of items on 'each' other tags, and its very fast. How can I do this in php with mysql?
...
We have a 16 processor SQL Server 2005 cluster. When looking at CPU usage data we see that most of the time only 4 of the 16 processors are ever utilized. However, in periods of high load, occasionally a 5th and 6th processor will be used, although never anywhere near the utilization of the other 4. I'm concerned that in periods of tr...
Possible Duplicate:
How to retrieve a list of directories QUICKLY in Java?
Java does not have a listDirectories/listFiles method, in order to find out your set of directories or files, you have to iterate through each one and call isDirectory. This proves to be a huge performance problem for us in the unix platform. Is there a n...
The drumbeat of writing terse CSS code has been beaten into my head for years. For example:
Do this:
.foo,.bar{
color:#f00;
}
Not this:
.foo{
color:#f00;
}
.bar{
color:#f00;
}
With GZIP compression isn't it irrelevant how I write the above CSS? Since GZIP will create a dynamic library with color:#...
Hi,
My question is related to Architecture of the Application on which am working right now. Currently, we are installing server locally on each box and that server get's data from the client and does some kind of processing on it and than it generates output and receipt is printed depending upon the output data, and that output data i...