I have the following jQuery statement which works fine but I was wondering if it could be shortened and if making it more concise would speed up performance or not?
The reason for the strange starting tag is that it is for a wordpress theme.
Cheers in advance!
jQuery(document).ready(function($) {
$(".sidebar ol#navigation li.work a")...
I am working on a page with several dynamically generated tables where the original developers used approximately the following logic:
<table>
<tr>...</tr>
<asp:PlaceHolder ID="ph1" runat="server" />
</table>
In the code behind:
// Do lots of stuff
HtmlTableCell cell = new HtmlTableCell();
// set cell text, formatting, etc
ph1.Co...
The problem: we have a very complex search query. If its result yields too few rows we expand the result by UNIONing the query with a less strict version of the same query.
We are discussing wether a different approach would be faster and/or better in quality. Instead of UNIONing we would create a custom sql function which would return ...
I'm making a site with PHP and MySQL. The big idea is that you can register and you can add objects to your profile. You can have only 1 profile, you can have multiple items(infinite, in theory) and each items can have multiple pictures(infinite, in theory).
I'm wondering how to best implement this in MySQL. I've had a very basic educat...
We have a "print engine" which basically picks pre defined tasks to run against a file and these "tasks" are .NET 2.0 - 3.5 (in C#) command-line applications.
All it does is run one after the other and with the applications that we haven't developed internally, they run quite quickly, typically 10-30 ms.
However, our .NET applicati...
Is there any differences between doing
Field field = something.getSomethingElse().getField();
if (field == 0) {
//do something
}
somelist.add(field);
versus
if (something.getSomethingElse().getField() == 0) {
//do something
}
somelist.add(something.getSomethingElse().getField());
Do references to the field through getters i...
Is it bad practice to have a single javascript file that gets loaded accross all pages even if certain functions are only needed on certain pages? Or should the files be split up according to functionality on a given page and loaded only by pages that need them?
...
This a follow-up to a previous question.
How can I optimize this query so that it does not perform a full table scan?
SELECT Employee.name FROM Employee WHERE Employee.id <> 1000;
.
explain SELECT Employee.name FROM Employee WHERE Employee.id <> 1000;
+----+-------------+-------------+------+---------------+------+---------+------+...
Fortran's performances on Computer Language Benchmark Game are surprisingly bad. Today's result puts Fortran 14th and 11th on the two quad-core tests, 7th and 10th on the single cores.
Now, I know benchmarks are never perfect, but still, Fortran was (is?) often considered THE language for high performance computing and it seems like the...
Does anyone know of any links to realistic performance comparisons of IIS vs. Apache for PHP hosting?
I am looking to utilise existing infrastructure for a change of technologies from .NET to a PHP application but I cannot find any information about PHP hosted on varying platforms. There is heaps out there about IIS vs. Apache in genera...
I was wondering if anyone had any hard numbers on ARM vs Thumb code performance on iPhone 3GS. Specifically for non-floating point (VFP or NEON) code - I'm aware of the issues with floating point performance in Thumb mode.
Is there a point where the extra code size of bigger ARM instructions becomes a performance hazard? In other words,...
Please tell me from experience with using the "IN clause" in a MySQL query is considered to be too large of a list to push through to be considered good practice?
Example scenario is I have a string of user ID numbers that I will pull from a cache, it can range from anywhere from 1 number all the way up to being 5,000 numbers in this ...
My WinFroms application uses tableadapters & datareaders to fetch data from an SQL server.
I am thinking of replacing the datareaders stuff with web services for security reasons.
I guess one of the cons will be the execution speed.
Is it true? Or...
...
I want to insert n records into a single table. There may be many concurrent users and they may insert/update/select data from this table. What is better way to insert in a such table say 1000 records:
Send a single sql query to a database with multiple inserts. This saves server to database calls, but (I not sure) locks the table unti...
I am searching a moderate number (~500) of folders for a large number (~200,000) of files from a .NET application.
I hoped to use DirectoryInfo.GetFiles, passing in SearchOption.AllDirectories. However this approach seems to be a lot slower than writing my own code to iterate through the directories and do GetFiles just passing in a sea...
Ok I have read a lot of posts and articles on how GREAT eAccelerator is, I tested it on my home dev server and it slowed my pages down pretty noticably, could it be because:
I don't have a lot of RAM?
It only works to improve the speed of code sometimes?
All the hype is false?
Other?
...
How can I say which class of many (which all do the same job) execute faster? is there a software to measure that?
...
I have a case where using a JOIN or an IN will give me the correct results... Which typically has better performance and why? How much does it depend on what database server you are running? (FYI I am using MSSQL)
Thanks
...
Hi.
Last time I started to implement a Model View ViewModel to work easily with WPF.
I have to say, that it's elegant, but there's one thing I have to remark.
I noticed a performance issue when working with MVVM.
Wrapping the original object into an "Viewable" object can be expensive in case of many items.
I recently had a ListView wit...
Assuming the following for...
Output:
The file is opened...
Data is 'streamed' to disk. The data in memory is in a large contiguous buffer. It is written to disk in its raw form directly from that buffer. The size of the buffer is configurable, but fixed for the duration of the stream. Buffers are written to the file, one after another. ...