I want to obtain the information of students in class c79363 ONLY.
The following file(users.txt) contains the user id's
c79363::7117:dputnam,gliao01,hmccon01,crober06,cpurce01,cdavid03,dlevin01,jsmith88
d79363::7117:dputn,gliao0,hmcc01,crob06,cpur01,cdad03,dlen01,jsmh88
f79363::7117:dpnam,gli01,hmcn01,ober06,crce01,cdav03,dln01,jith8...
Does anyone know if there's any benefit in 'minifying' locally-stored javascript code to squeeze more performance out of the javascript engine?
Usually minification is done to reduce bandwidth requirements/costs, or obfuscation, but would there actually be any performance benefits?
In other words, does this code:
let i=[1,2,3,4,5,6];l...
From the node.js page
"Almost no function in Node directly performs I/O, so the process never blocks. Because nothing blocks, less-than-expert programmers are able to develop fast systems."
so if a less than expert programmer does something like start an infinite loop in the callback, it doesn't kill the system (eventually)?
or, more ...
I have ListBox. ItemsSource of this control is binded to ObservableCollection. I want to measure time which starts when I changed ObservableCollection and ends when user saw updated content in the ListBox.
The main problem here is how to determine this moment when control is rendered. I need to do it in the code to write measured time i...
SQL Server 2008 running on Windows Server Enterprise(?) Edition 2008
I have a query joining against twenty some-odd tables (mostly LEFT OUTER JOINs). The full dataset returned by an unfiltered query returns less than 1,000 rows in less than 1s. When I apply a WHERE clause to filter the query it returns less than 300 rows in less than 1s...
I gathered from the much famed scaling rails screencasts that at some point when your site gets big and bigger, proxy caching is the way to go. Proxy caching uses etag, among other things and since etags can be more specific and strong validator is perhaps the way to go. However, I also hear that in server farm scenarios the etag is not...
Currently I use nginx + passenger for serving my rails app. I have been doing some research on reverse proxies and a few names pop up (squid, varnish and nginx mostly).
1 - Now If I am using nginx as my web server can I stil use it as my reverse proxy?
2 - The general sense is that most sites use nginx for proxying static content and a...
What free tools could I use to test the performance of C++ code in Linux? Basically I want to identify the bottleneck of the code and improve on the performance. My application mainly involves computational code using the data from the network. So I would like to improve the speed of execution of the code.
Thanks.
...
is there a performance difference between
$a = mysql_query("SELECT * FROM table WHERE id = 1 AND text = 'test'");
and
$a = mysql_query("SELECT * FROM `table` WHERE `id` = '1' AND 'text' = 'test'");
...
is there a more efficient way of doing the following?
$total_a = mysql_query("SELECT `id` FROM `table` WHERE `this` = 'that'");
$total_b = mysql_num_rows($total_a);
if(!$total_b)
{
echo 'no results';
}
else
{
$a = mysql_query("SELECT `id`, `time` FROM `table` WHERE `this` = 'that' ORDER BY `time` DESC");
while($b = mysql_fe...
To take advantage of multiprocessors
1. Do you need to select any specific programming language
2. Are there any design patterns
3. Can you schedule each thread on any available different processor
I am trying to understand good practices to write excellent programs which take full advantage of the available processors.
...
We are using sp's to convert a uploaded file into corresponding master values and their combination as the business rule demands. For this we have made 4 sp's . All these sp's are called from a single sp which the user calls from application along with the data from the file.
Note: Each sp must be called after the previous one has finis...
I am thinking of implement a image processing based solution for industrial problem.
The image is consists of a Red rectangle. Inside that I will see a matrix of circles. The requirement is to count the number of circles under following constraints. (Real application : Count the number of bottles in a bottle casing. Any missing bottles?...
Let's say I have a project with a dozen of different modules which produce one resultant DLL, how can I analyze it so that I can identify the actual file size that each module/functions contribute? I know it might be impossible with a Release build where much information has been stripped, but how about if I have the full source and can ...
I have a silverlight client that communicates with a web service on a server. It has a DoSomething method that does nothing and returns void.
On the client, I call the service and listen to when the response comes back:
proxy.OnDoSomethingCompleted+=OnDoSomethingCompleted;
t0 = Environment.TickCount;
proxy.DoSomethingAsync();
void DoS...
I'm serializing the data in my app using custom serialization i.e. each of the classes I'm storing has the [Serializable] attribute and implements ISerializable. The object graph being serialized is reasonably complex with lots of cross-references between the objects/classes. The serialization works, but it's pretty slow. :(
By putting ...
I'm working on a fuzzy search implementation and as part of the implementation, we're using Apache's StringUtils.getLevenshteinDistance. At the moment, we're going for a specific maxmimum average response time for our fuzzy search. After various enhancements and with some profiling, the place where the most time is spent is calculating t...
In short, does anyone know of a JMeter workaround to mask/encrypt values sent as an HTTP request parameter?
My company has a rule that user name/passwords cannot be stored in scripts.
In my JMeter scripts, I've gotten around this by passing the user name/password through the command line and storing them as properties to be retrieved l...
Is there any performance difference between:
size.width += this->font->chars[*ch].advance + this->font->chars[*ch].offset.x;
and
char_data *chars = this->font->chars;
while(...) {
size.width += chars[*ch].advance + chars[*ch].offset.x;
}
In first example are always read vars( this->font, font->chars ) within loop, or they are ca...
Hi All,
I would like to build my own signal processing library, and possibly another one about graphs algorithm. I find C# very useful and robust in regards of possible bugs associated with memory allocation, pointers, threading etc...
But I was wondering how much am I going to lose in terms of performance. Is it going to be something a...