There is a site, where images are not organized into month- and year-based folders. There are more than 20 000 of images in one folder (uploads) now. When I...
I’ve just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with this: public string Reverse(string text) { char cArray =...
This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care to stack allocate things where I...
Question: Is exception handling in Java actually slow? Conventional wisdom, as well as a lot of Google results, says that exceptional logic shouldn’t be used for normal program flow...
Does a website slow down or under perform in any way with a large number of widgets installed? 4 s 4 Put simply: not inherently. If you have a...
What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the total number of results (before...
My sites are so slow running on my local machine, with MAMP on Mac. Any ideas of how to determine where the slow down is? It’s slower than making...
What is the most efficient way to map a function over a numpy array? The way I’ve been doing it in my current project is as follows: import numpy...
I have a feed aggregator and I want will have 2 million posts. I am forced to host the content in order for the posts to show in the...
I’m trying to create a fast 2D point inside polygon algorithm, for use in hit-testing (e.g. Polygon.contains(p:Point)). Suggestions for effective techniques would be appreciated. 39 s 39