I need to measure the rate an application event which is occuring with a frequence bellow once per sec. Can this be achieved using the CountPerTimeInterval32 counter type and if so how? If not, what is the best type of performance counter to use to measure infrequently occuring events?
...
Given the following markup
<ul class="list">
<li>first item</li>
<li class="item">second item</li>
<li>third item</li>
</ul>
Which one these 2 expressions is better to select the second li?
$("ul li.item")
or
$("ul li").filter(".item")
This is not ...
When a user presses the back key to my first activity, where I start an AsyncTask duringonCreate() that checks to see if buttons should be enabled based on whether or not websites are down. I use an HttpClient to contact www.downforeveryoneorjustme.com to determine if the site is down. When users return to this Activity the phone becomes...
Hello, I have a txt file that has a change-log.I'm trying to display the new changes only for the current version.
I wrote a function to read the file and check every line if it has the wanted words, if it finds those words it starts to get the content and push it to an array.
I searched to see if there is an example but everyone was t...
I have an ftp directory with Akamai now and I need to upload images as fast as possible (possibly 1+ million per day)
What would be the fastest way to sync local files to an ftp site?
thanks
...
Let's say I define the sequence of all natural numbers in the following way:
(def naturals (iterate inc 0))
I also define a function mapping the naturals to nil that takes a while to compute like so:
(defn hard-comp [_] (Thread/sleep 500))
Note the computation time to evaulate the following s-expressions as measured by clojure.core...
I have read in a site that another benefit of having Lighttpd in front of Apache is lower number of child processes. Lighttpd will handle keep-alive and client requests while child processes of Apache gets to serve dynamic pages faster because of the very low latency communication between Lighttpd and Apache. I am trying to find the link...
Hello,
I will create frienship system for my project. I couldn't decide whether I should store friends in a column at user's row or create a friends table and store there with user IDs? To clearify which usage is better:
Should users table be like this?
+-----------+-----------+---------------+
+ id + username + friends ...
Hi,
I am working on a OpenGL ES 2.0 shader and I have tightly packed data e.g. three 5-bit unsigned integers within a block of two bytes. To unpack this data I obviously need bit-shifting, but this is not supported in OpenGL ES Shading Language (see page 29 http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.20.8.pdf)
Consequently I ...
Hi!
Why the outer joins are in general slower than inner joins? I mean, independently from the database vendor. I suppose it's a matter of implementation or the access plan used, but I wasn't able to convince a colleague of mine who thinks performance should be the same.
Thanks in advance
Lluis
...
Hello Gurus:
I have a huge table, 1 row with around 2600 columns (it's a Gantt chart)
What I'm trying to do is to clone this table and copy it 100 times to somewhere on the page (instead of redraw the table 100 times as it seems to be less efficient, I can be wrong though)
var $templateTable = $("div#GTT_TLayout").clone();
//there ar...
Hi,
I am a PHP developer and I have always thought that micro-optimizations are not worth the time. If you really need that extra performance, you would either write your software so that it's architecturally faster, or you write a C++ extension to handle slow tasks (or better yet, compile the code using HipHop). However, today a work m...
On some photobook page i want to show appr 20 thumbnails. These thumbnails are programatically loaded from a database. those thumbnails are already resized. When i show them the images load kinda slow. some take 0.5 seconds to load some wait for 2 secons. The database doesn't matter because when i remove the database layer, the performan...
This is a newbie question, I know. Can you guys help?
I'm talking about big files, of course, above 100MB. I'm imagining some kind of loop, but I don't know what to use. Chunked stream?
One thins is for certain: I don't want something like this (pseudocode):
File file = new File(existing_file_path);
byte[] theWholeFile = new byte[file...
I am working on a WinForms project which feels sluggish. It is composed of a literally hundreds of User Controls. If there is a piece of a UI functionality (even if not used anywhere else in the app), it's encapsulated in a User Control. I've gone through the project a number of times with the ANTS profiler and most of the heavy code a...
I've got a large-ish MySQL database which contains weather information. The DB is about 3.5 million rows, and 486 MB in size.
I get a refresh of this data every 6 hours, in the form of a mysql dump file that I can import. It takes more than 2 minutes to import the data and probably a similar amount of time to create the index.
Any th...
Taking substrings of a string is a very common string manipulation operation, but I heard that there might be considerable differences in performance/implementation between the Java and .NET platform. Specifically I heard that in Java, java.lang.String offers constant time operation for substring, but in .NET, System.String offers linear...
Sometimes back I had to work on plain TCP/IP client-server application using just .Net framework 2.0. I found that .net 2.0 socket library was quite inefficient and used to take lot of memory and processing cycles we then switched over to C++ and it worked very well.
I want to check if there's been any improvements for TCP/IP library i...
In my project used quick search for character based send request to server , But on time the user fastly type then i got http service error So i want to know how avoid that problem or any possiable to avoid continue request to server or any message queue technical for that problem . kindly give suggestion it's helpful to all
...
Hi!
In my recently project i work with multiple rss feeds. I want to list only the latest post from all of them, and sort them by timestamps.
My issue is that i have about 20 different feeds and the page take 6 seconds to load (only testing with 10 feeds).
What can i do to make it perfrom better?
I use simplexml:
simplexml_load_file...