Hi,
I like Google Web Tookit API approach. It use Java language behind the scenes that compiles ONLY JavaScript code WHOSE TARGET BROWSER NEEDS. It happens some developers would like to use that feature in pure JavaScript language.
Anwser: WHAT COULD WE SUGGEST in order to fullfill this requirement ?
I suggest to use JavaScript comme...
We have developed a vacation rental application in ASP.NET with SQL server as DB. Used .NET 3.5 with Entity Framework. Currently QA test this with P4 machine with 2GB RAM. Looks like the processor utilization goes up to 50% for every request. All our DB retrieval timings are < 1 sec. The page load is very slow. We applied all performance...
Hi,
Suppose we want to loop through all the items in a dropdown list and no item is added or removed while we are looping. The code for it is as follows:
for (int i = 0; i < ddl.Items.Count; i++)
{
if (ddl.Items[i].Text == text)
{
found = true;
break;
}
}
If it is changed to this:
for (int i = 0, c = ddl....
You may know this recommendation from Microsoft about the use of exceptions in .NET:
Performance Considerations
...
Throw exceptions only for
extraordinary conditions, ...
In addition, do not throw an exception
when a return code is sufficient...
(See the whole text at http://msdn.microsoft.com/en-us/library/sys...
In C#, does setting a field as readonly reduce memory usage?
i.e.
DBRepository _db = new DBRepository();
vs
readonly DBRepository _db = new DBRepository();
Just curious. Thanks.
...
We are running Jira on a 4 way 32 bit RHEL box with 4 GB RAM with no problems so far. However we anticipate an increase in the number of users and would like to know the maximum no. of simultaneous requests that a Tomcat-Jira server can handle. (The Jira application is deployed on a standalone tomcat server that runs nothing else, so eve...
Let's presume that you are writing an application for a retail store chain. So, you would design your object model such that you would define 'Store' as the core business object and lots of supporting objects. Let's say 'Store' looks like follows:
class Store implements Validatable{
int storeNo;
int storeName;
... etc....
}
So, your ...
Jimmy Nilsson discusses his COMB guid concept here. This concept is popular in NHibernate, among other circles, for its supposed performance value over standard GUIDs which are typically far more random.
However, in testing, this does not appear to be the case. Am I missing something?
Test case:
I have a table called temp (not a temp ...
In the book Linkers and Loaders, it's mentioned that one of the reasons for executables to have a separate code section is that the code section can be kept in read only pages, which results in a performance increase. Is this still true for a modern OS? Seeing as Just in Time compilers are generating code on the fly, I assume they need w...
I've noticed some code that uses the static method:
Regex.IsMatch([someRegexStr], [someInputStr])
Is it worth replacing it with the instance method? Like:
private readonly Regex myRegex = new Regex([someRegexStr]);
...
myRegex.IsMatch([someInputStr]);
...
I have a log that is really huge. (millions of rows)
LogTable
-------
ID
DATE
BASEURL
QUERYSTRING
USER
REFERRER
USERAGENT
SERVER
I want to slim this table down by normalizing the data. (slim the size)
I know! I know! A log should be a super-fast insert. On the other hand, the log table is so huge, the maintenance plan i...
I am developing an app that utilizes very large lookup tables to speed up mathematical computations. The largest of these tables is an int[] that has ~10 million entries. Not all of the lookup tables are int[]. For example, one is a Dictionary with ~200,000 entries. Currently, I generate each lookup table once (which takes several minute...
Hi,
I'm looking at revamping our malloc() in our operating system kernel. We currently use dlmalloc, but I'd like a homebrew solution that we can edit without having to work on a thousand-line file.
I've decided to look into the slab allocator (Bonwick94) and I believe it's the right choice. So far I understand the concept and am ready...
Today I have checked performance statistics of my website using YSlow. I got a warning (or error may be) which is as below
Add Expires headers
There are 15 static components without a far-future expiration date.
* (no expires) http://www.example.com/video/css/global.css
* (no expires) http://www.example.com/video/js/global.js
...
Similar to this question:
http://stackoverflow.com/questions/337352/jquery-build-html-in-memory-rather-than-dom
I have a
var $container = $("#container");
I also have:
jQuery.fn.somedomedits = function(expr) {
return this.each(function() {
var $self = $(this);
$self.find(".adsf").append("<div></div>");
// A lot m...
I have a process that is performing badly due to full table scans on a particular table. I have computed statistics, rebuilt existing indices and tried adding new indices for this table but this hasn't solved the issue.
Can an implicit type conversion stop an index being used? What about other reasons? The cost of a full table scan is a...
Hi,
how do I prevent slow loading external js files from blocking the loading process of the whole website (because the browser processes 2 requests only at a time)?
Let's say I want to include the sharethis button but the server is encountering heavy load and needs to long to serve my request, how can I force the rest to load anyway. ...
Hi everybody.
I'm writing a Content Management System in PHP, and I want it to be the smallest one in the world. I'm planning to make it available to everyone, just like Drupal and Joomla. But to make it so ultra-tiny, I change code to smaller code.
For example, I change:
$info = parse_ini_file("info.scm"); /* to */ $i=parse_ini_file(...
Hello,
I have bmp images in image folder on my computer.I named it from 1.bmp to 100.bmp .All of them size is 576*768
I read one by one these hundered images.I select rectangular region from all hundred images.Rectangular region's pixel coordinates is changing from 182 to 281 vertically and changing 426 to 639 horizontally.I save gra...
What is the best way to precompile JSP files in Websphere (6.1)?
I have looked at other questions related to JSP precompilations, but as each AppServer has specific settings, I would like to know specifically a solution for Websphere.
I found some references in the net to edit the file ibm-web-ext.xmi:
Add the following line before th...