hey i am using threads on my own not using thread pool.each thread is making web request .so is there any restriction from platform side fr number of threads to be used .or it will just degrade performance ?
...
Hello there,
I had a routine that was performing good. However, I had to make a change to it. The change improved the routine's precision but hurt the performance.
The routine is lots of math calculations and is probably CPU bond (I still have to do more rigorous testing on this, but I'm 99% sure). It is written in C++ (compiler is Bor...
I've always wondered this. I have a habit of always adding
use strict;
use warnings;
use Data::Dumper;
to the top of every script I write. Does this add overhead if I don't even use the Dumper function? Also, in most cases Data::Dumper was called earlier in another package but I need it in this package so I include it again. In thi...
Hello!
I have a performance-intensive iPhone game I would like to add sounds to. There seem to be about three main choices: (1) AVAudioPlayer, (2) Audio Queues and (3) OpenAL. I’d hate to write pages of low-level code just to play a sample, so that I would like to use AVAudioPlayer. The problem is that it seems to kill the performace – ...
How do I improve Subversion client update performance? It appears to be disk bound on the client.
Details:
CollabNet Windows client version 1.6.2 (r37639)
XP SP2
3GB RAM with PF Usage around 1GB and System Cache of 1.1GB.
Disk has write caching enabled
Update takes 7-15 minutes (when very little to update).
Checkout has 36,083 di...
As I loop through lines in file A, I am parsing the line and putting each string (char*) into a char**.
At the end of a line, I then run a procedure that consists of opening file B, using fgets, fseek and fgetc to grab characters from that file. I then close file B.
I repeat reopening and reclosing file B for each line.
What I would ...
Hi everyone,
I have a somewhat complicated assortment of tables for which I need to do some SQL query construction/optimization. Currently a lot of the logic being used to obtain the results we need is being done at the app layer, which is resulting in terrible performance due to full table traversals, etc. SQL is not my strong suit, ...
Of late, I'm becoming more health oriented when constructing my program, I have observed that most of programs take 2 or 3 minutes to execute and when I check on the task scheduler, I see that they consume 100% of CPU usage, can I limit this usage programatically in code? This will certainly enable me to run multiple programs at a given ...
Since this doesn't touch a real problem of mine I'm somwhat uncertain, if it is even worth to be asked here. However maybe some of you would like to share your opinion on that.
In general I have to admit, that 'better' means anything and nothing at all at the same time. So I probably should be more specific, but I tried not to overflow...
We are developing an ASP.NET HR Application that will make thousands of calls per user session to relatively static database tables (e.g. tax rates). The user cannot change this information, and changes made at the corporate office will happen ~once per day at most (and do not need to be immediately refreshed in the application).
Abo...
I have simple db with 4 tables with a few millions rows each, and several indexes. I'm performing several hundred update and inserts on them per minute. The reads are much less frequent, but they need to be fast - for a web app. The reads should have priority - I can delay writes, if it helps improve the snappiness of reading.
Curren...
Hello!
Once I had the theory that on modern operating systems multithreaded
read access on the HDD should perform better.
I thought that:
the operating system queues all read requests,
and rearranges them in such a way, that it could read from the HDD more
sequentially. The more requests it would get, the better it could rearrange the...
What are the strengths and weaknesses of a triplestore database, such as Mulgara? In which situations would its performance be significantly different from that of a traditional relational database?
I'm thinking in particular about situations where you have data in the form namespace:predicate=value. Triplestores would seem to keep the ...
We want to collect usage statistics with our app.
Therefore, we want to track user actions somewhere on the server side.
Which option is more suitable, performance-wise:
Track user actions in the App Engine Request Log. i.e. write a log entry for each user action.
Track user actions in a table in the Datastore. Write an entry for ...
I'm building classes that interface with the Twitter API, and I'm wondering whether PHP's built-in XML or JSON parser is faster? Twitter will send me the same data in either format, so PHP performance will determine my choice. I'm using php_apc, so you can disregard parse time and assume I'm running off bytecode.
Thanks!
more: I'm jus...
I want to write data in a file frequently ,
I wonder if I call CreateFile() each time I write it,
Does this way cost so much than the way that I just call it once ,then
use the handle many times?
...
I have EJB RESTEasy controller with CMT.
One critical method which creates some entities in DB works fine and quickly on single invocation.
But when i try to invoke it simultaneously by 10 users it works very slowly.
I've tracked time in logs and the most expanded place vs. single invocation is
lag between exit from RESTeasy controll...
I have seen extensive articles and blogs posts on the comparison, but what about the performance?
I am fine with the function of ReSharper but the performance is unbearable.
I am willing to change to escape that pitfall, but will I actually be escaping it?
I'm not asking anyone to do statistics on a fresh machine, but what is the appr...
I implemented the solution of Bellman - Ford algorithm with a queue and I compared its performance with the Dijkstra algorithm. They were pretty close and that was a surprise for me because the complexity of Bellman - Ford is O(NM). I know that the complexity is for the worst case, but still the result was surprising. I searched for some...
Given a table name and column name in a pair of variables, can I perform a select query without using dynamic sql?
for example, I'd like something nicer than this:
CREATE PROCEDURE spTest (@table NVARCHAR(30), @column NVARCHAR(30)) AS
DECLARE @sql NVARCHAR(2000)
SELECT @sql = N'SELECT ' + @column + N' FROM ' + @table
PRINT @sq...