I am deserializing an object from a file that is 350KB in size, and its taking rather a long time. My computer science TA told me that there is a way to use a Buffered reader along with the ObjectInputStream to greatly increase performance. I however can not find anything about this on Google.
...
Is there a way to get CPU usage in CentOS? I need to parse this information and graph it from a Perl script, so it should preferably be a simple tool that prints out one singular output.
...
Using a very large raw binary data file, I will be creating a large binary file (greater than 1 GB, usually greater than 4 GB) that contains sensor data from an arbituary number of sensors (1 to 64). The new processed file will be used by user in a GUI where they will be jumping around the file looking at different time periods or other ...
I'm writing some testing code on a Drupal 6 project, and I can't believe how slow these tests seem to be running, after working with other languages and frameworks like Ruby on Rails or Django.
Drupal.org thinks this question is spam, and won't give me a way to prove I'm human, so I figured SO is the next base place to ask a question li...
This is more out of personal curiosity/interest than a specific problem I'm trying to solve.
Suppose you have a program that is performing some operation on user-supplied information (such as a search string) that changes as the user types it. Suppose that you want to show the user the most relevant information for what they've typed at...
What is the most performant (fastest) lisp implementation on the JVM?
By lisp implementation I consider all implementations of any language in lisp family, like Common Lisp, Scheme, Clojure, ...
I know that Clojure can be made pretty fast using type hints, that ABCL is in general not considered to be fast. I don't have experience using ...
Edit: While this question has been asked and answered before (1), (2), (3), the answers have not mentioned the possibility of using asynchronous and /or lazy loading when including files in the <head>. I was prompted to ask the question due to Google analytics new code which uses both of these methods.
I recently noticed that Google a...
It's pretty common knowledge that JQuery is in both the Microsoft and Google CDN, but there are more and more I'm hearing about such as Yahoo YAPI and others.
I'm a new web developer and am interested in hearing about what libraries are widely used, located on a CDN, and worth learning about. What libraries would you recommend?
...
Hi there, a quick, simple question from me about for-loops.
Situation
I'm currently writing some high-performance code when I suddenly was wondering how the for-loop actually behaves. I know I've stumbled across this before, but can't for the life of me find this info again :/
Still, my main concern was with the limiter. Say we have:
...
This is a fairly simple question (or at least from the outset it should be).
I am looking into efficient ways to model a One to Many relationship where the many is the same type.
Example
Say we have a Person Entity, and this person has 0 to many Sub-Persons, and the Sub-Persons have 0 or 1 Parent-Person.
The answer should take into c...
I have a Silverlight 4 solution that takes a really long time to build from both VS2010 and the MSBuild 4 command line.
The solution contains 42 projects, one is a Silverlight application project, one web application project, and the rest are class libraries.
The MSBuild diag summary shows these tasks are taking some considerable time....
Is there a performance difference between getting the count of an array (for example in c#) vs storing the count of an array in a variable.
This is assuming that the count isn't changing.
I'm presuming the answer will that storing it in a variable will cost more memory and accessing it directly e.g. array.length will be slightly slower...
What is the better way to get a parent node for the following example of code?
...
<tr>
<td>
<table>
<tr>
<td>
<div class="block_data">
Hello world!!
</div>
</td>
</tr>
</table>
</td>
</tr>
/*Javascript code 1*/
$('.block_data').parents('tr').first()...
/*Java...
I've switched from classpath scanning of Controller classes to explicitly declaring the beans, but was wondering what else I can do to cut down on the initial startup of a Spring MVC application.
...
What's the fastest/cleanest way to find the bit offset of the first unset bit in an array of arbitrary length?
Assume the prototype for your function is something like this size_t first_unset_bit(char unsigned const *buf, size_t bit_count, size_t start_bit); and that it may be called several times in quick succession on the same buffer....
How do I diagnose web page performance problems if none of my JavaScript events seem to be the cause?
I have a web application using jqGrid. Clicking on the grid causes a 2-3 second freeze before anything happens (including any click events being hit). Clicking anywhere else on the page is fine (instant response). Removing rows red...
We all know Jmeter isn't the best at changing the number of active threads during the run (unless you get fancy and make separate thread groups that fire off at different intervals).
Has any come up with a good solution for ramping down at the end of the test?
For example, I start with 50 threads and within 30 minutes I want 0 active...
Hello All,
I realize this question could be boiled down to "Why is my code so slow?" but I'm hoping to get more out of that. Let me explain my code.
I have a class that implements INotifyPropertyChanged in order to do binding, and that class looks similar to this:
public class Employee : INotifyPropertyChanged
{
string...
Ok, so I am downloading chunks of data via xhr and I want to store it locally for a chrome extension.
At first I was able to store it in localStorage, but then I needed to move on to larger chunks that localStorage can't handle.So I decided to store it in a Web Sql Database. However I was able to store the data in localStorage exactly a...
I have a top-down EJB Webservice (deployed on Websphere 6.01) that hangs the first time I call it after starting the JVM. If I see the logs, it seems to do everything normal that I expect it to (retrieving data from database) and I see all sysouts printed till the very last statement in EJB method. But client never gets the response back...