I have built software that I deploy on Windows 2003 server. The software runs as a service continuously and it's the only application on the Windows box of importance to me. Part of the time, it's retrieving data from the Internet, and part of the time it's doing some computations on that data. It's multi-threaded -- I use thread pool...
hi
This is related to this question
I have a vector of points that will, for instance, store 100K+ points.
std::vector<Point> point_vec;
I want to check if a position (x, y, z) to be added is already in point_vec (represented by an instance of class Point ). The following function will check this (in a for loop)
bool samePoints(...
I'm planning to design a class to limit the execution of a function to given amount within the specified time, for example:
Process max. 5 files in 1 second
It should be thread-safe and performance hit should be minimal.
How would you design such a class? I've got couple of ideas but none of them seemed right to me.
Is there any ...
If Python was so fast as C, the latter would be present in python apps/libraries?
Example: if Python was fast as C would PIL be written completely in Python?
...
This is going to be one of those questions but I need to ask it.
I have a large table which may or may not have one unique row. I therefore need a MySQL query that will just tell me TRUE or FALSE.
With my current knowledge, I see two options (pseudo code):
[id = primary key]
OPTION 1:
SELECT id FROM table WHERE x=1 LIMIT 1
... and t...
New Ant 1.8.0 (release Feb 1) introduces some cool features, so I tried my build/deployment scripts with new Ant.
I was surprised that execution time becomes in 10-30 times slower for some targets! Below simple example with Exec task, although I got performance problems with other task types too.
<target name="create_backup_impl" if...
This shouldn't be a difficult question, but I'd just like someone to bounce it off of before I continue. I simply need to decide what data structure to use based on these expected activities:
Will need to frequently iterate through in sorted order (starting at the head).
Will need to remove/restore arbitrary elements from the/a sorted...
How big can a SQL Server 2005 SSIS package definition become before design-time or run-time performance is impacted? I'm not talking about the size of the datasets being passed, or even the number of columns being returned. I'm just talking about the number of sequences, tasks, data flow tasks, and variables being used in the package. ...
Hi ,
I have a question regarding flex and embed fonts , i want to have a library of embed fonts that will have about 30 different fonts .
Is there any way i can only load the fonts that i use? ( dynamicaly )
Thanks
...
We are looking at adjusting our web pages so we split our calls for static data across sub-domains. In order to do this we must:
Always serve the same content from the same sub-domain so it remains cached
Try and serve roughly the same amount of content from each of the sub-domains
Try to do this in an automatic way on a per-page basis...
I'm currently building a site that gives a lot of sorting options to the user and I want to build it in a way that it can be scaled without too much headache. Of course there are tradeoffs to both of these techniques, but id like to hear your opinions.
1) Store a serialized json array in a single column. When a new entry is added or re...
I'm new to MySQL and something that's quickly becoming obvious to me is that it feels considerably easier to create several database queries per page as opposed to a few of them.... but I don't really have a feel for how many queries might be too many, or at what point I should invest more precious time to combining queries, spending tim...
I am using XmlReader to validate a XML file as per the supplied schema.
For that I am creating an instance of XmlReaderSettings and setting it's ValidationType as ValidationType.Schema and it's Schemas Property as XxmlSchemaSet. A draft code is like
XmlReaderSettings rSettings = new XmlReaderSettings();
XmlSchemaSet schemaSet = new Xml...
I'm porting a C++ program to Python. There are some places where it uses std::set to store objects that define their own comparison operators. Since the Python standard library has no equivalent of std::set (a sorted key-value mapping data structure) I tried using a normal dictionary and then sorting it when iterating, like this:
def __...
Normally its possible to display a fiddler session on a timeline, to see the sequence of the web requests and how long it took to get a response.
However, for some reason a certain session does not contain any time information, therefore the timeline feature does not work.
The Statistics of the requests show blank time values:
ACTUAL P...
YSlow, dynaTrace, HTTPWatch, Fiddler .........
All these things are really good for measuring the performance of the website and get statistics for the same. YSlow is really cool, offers good guidelines also.
However, i am very confused with so many things around (Though it's good that people already invested time and have made nice g...
I am using the task parallel library from .NET framework 4 (specifically Parallel.For and Parallel.ForEach) however I am getting extremely mediocre speed-ups when parallelizing some tasks which look like they should be easily parallelized on a dual-core machine.
In profiling the system, it looks like there is a lot of thread synchroniz...
I did create two new indexes on the tables that are used on a the sp.
The new results shows that on the part of problematic joins, the scans are converted to seek. I think seek is better rather than scan operations. On the other hand, the time takes more or less the same duration as it was without new indexes.
So clearly, how can i get...
I have a list of constants and want to check if a value passed to a method equals one of the constants. I know Enums which would be fine, but I need an int value here for performance reasons. Enum values can have a value, but I'm afraid the getting the int value is slower than using an int directly.
public static final int
a = Intege...
On my website, I dynamically modify the javascript 'className' property of a DIV. However this is an extrememly expensive operation, as the DIV contains a lot of child nodes. Sometimes it takes up to 1.5secs.
Is there a way of speeding up this operation? Like, hiding the content, performing the operation, then showing the content again?...