I was trying to further reduce the filesize of a SWF file by optimizing the embedded PNG graphics (using ImageOptim tool). To my surprise, this didn't yield any effect, so I created two test Images (get them here: http://www.filefront.com/16902865/images.zip):
Original (434kb)
Optimized (274kb)
When embedding either of these assets in...
I set up a (perhaps very unscientific) small test to determine the overhead of virtual functions in a one-level single inheritance and the results I got were, well, exactly the same when accessing the derived class polymorphically or when accessing it directly. What was a bit surprising was the order of magnitude of computation time that...
hello all
i make a wpf application its running well.but whenever the size of my xml is to big its running very slow every time we fetch data from xml as code below
is any body suggest me it is because of this or may be other problem
how can i reform this
thanks
shashank`
DataSet xmlData = new DataSet();
Xml...
For any N, let f(N) be the last five
digits before the trailing zeroes in
N!. For example,
9! = 362880 so f(9)=36288
10! = 3628800 so f(10)=36288
20! = 2432902008176640000 so f(20)=17664
Find f(1,000,000,000,000)
I've successfully tackled this question for the given examples, my function can correctly find f(9), f(10),...
i have a contact_relationship table that stores the reported strength of a relationship between one contact and another at a given point in time.
mysql> desc contact_relationship;
+------------------+-----------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default ...
I asked this question before but from comments I realized that the question was not enough information in the question to get help so here I am providing the whole query + explain plan:
Query:
WITH gtt_1 AS
(SELECT
r.user_id, r.role_id, r.participant_code, MAX(status_id)
FROM
user_role r,
cmp_role c
WHERE
r...
Hello,
I have a custom UI drawn for my java application. Right now I draw the entire UI from scratch. I know for a fact some parts of the UI are static. I know I could save these static parts to an image, but will this yield a improvement in performance (Since even an image must be drawn every frame)?
Is it plausible to save a refer...
I'm trying to speed up my site and found this site:http://www.computingunleashed.com/speed-up-wordpress-ultimate-guide-to-make-sites-super-fast.html, which gave the following recommendation:
Just like the hard disks the wordpress database also gets fragmented. So optimizing the wordpress database too can speed up your site.
For optimiz...
...well, I got strange results!
I was curious about the performance of std::vector vs. that of a dynamic array. Seeing as there are many questions on this subject already, I wouldn't have mentioned it if I didn't constantly get these 'contradictory' results: vector<int> is somehow faster than a new int[]! I always thought that if there ...
I read the article Optimizing Memcpy improves speed, I have a question about the modified-GNU algorithm, I get an error running the code the src & 0xFFFFFFFC , src is a void pointer, can it be a left operand for ‘&’ ? Did I miss anything here?
Thanks
Error 1 error C2296: '&' : illegal, left operand has type 'const void *’
vo...
Hi,
Can someone know how to improve table cache in mysql? I have optimized few tables by creating indexes.
Please share your thoughts.
Thanks.
...
I'm facing an interesting problem:
I have several date ranges that can overlap
each of them has a name
Is it possible to "des-overlap" theses ranges? That is, to generate:
a new set of ranges where none overlaps the others
each of this new range has a list of corresponding names
Maybe I can make this a bit more graphical. This i...
Hi Folks,
I'm working on a multiplaform project (MacOS, Linux and Windows) and I've been having some performance issues when trying to compile a big source file in VS C++ 2010.
Here's a little background. There's one .cpp file inside the project that is 800KB big. The size of the file is caused by the fact that I'm compiling an array t...
I need to build simple server that
reads (potentially large) xml files
processes them in memory(eg transform them to a different xml structure)
writes them back to disk.
Some important aspects of the program:
speed
ability to distribute the server. That means placing (what does that mean) several such servers and each server will ...
I am looking for a generic optimized lookup object that takes a function f(x) and creates a linear piecewise approximation with configurable parameters for the range of x and the intervals of population.
Obviously this is not hard to write, but given that it is useful for a lot of expensive functions (trig, yield, distance), I thought a...
Perl has Regexp::Optimizer, is there anything similar in PHP? My searches haven't turned up anything.
For example, Regexp::Optimizer would turn
/foobar|fooxar|foozap/
into
/foo(?:[bx]ar|zap)/
Update: I wanted to keep that question really short so that people would not try to over-interpret it but it turns out it had the opposite...
In IE Java-script load slower than Firefox, Safari and Chrome?
Is there a way to load JavaScript quickly in IE also?
General best practice is to keep JavaScript at bottom of the page, does it make Js rendering more slow in IE?
Edit:
When we apply any jquery plugin to website to make any usable or interactivity then in IE effect shows...
It looks like from the execution plan the IN version is faster than EXISTS version
I'm thinking that EXISTS query is faster, for it eagerly checks the conditions. The IN query though it looks intuitive, I feel that it seems it resolves the final conditions' result very late; that is, from inside out, I perceived that IN are slower beca...
Here is the code, in python:
# function for pentagonal numbers
def pent (n): return int((0.5*n)*((3*n)-1))
# function for generalized pentagonal numbers
def gen_pent (n): return pent(int(((-1)**(n+1))*(round((n+1)/2))))
# array for storing partitions - first ten already stored
partitions = [1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42]
#...
I have the following lamda expression:
IEnumerable<Order> query
= _ordersRepository.GetAllByFilter(
o =>
o.OrderStatus.OrderByDescending(os => os.Status.Date).First()
.Status.StatusType.DisplayName != "Completed"
||
o.OrderStatus.OrderByDescending...