I have some 3d models I am loading into an OpenGL ES scene. If I simply load all of them I'll get them placed one over the other since they' ve been all centered into the coordinate system origin when created in Blender.
I need to position them in different places so what I am doing right now is this for each model:
glMatrixMode( G...
I am launching a process and writing an intruction xml file to the destination process over stdin. There is only 2k of data but it is taking almost half a second to transfer that much data, which seems like way too much to me. What I am measuring is the amount of time it takes the child process to consume the data.
Any suggestions for...
The LDC D compiler for LLVM can inline indirect function calls under some circumstances if it can prove that the target is statically known. Here's a toy example (in D) of where this might happen:
void main() {
uint num;
void incNum() {
num++;
}
auto myDelegate = &incNum;
myDelegate();
}
In this case, ev...
Suposse I have the next MySQL database with 500.000 rows:
users
{
id - int,
name - varchar(32),
verified - tinyint(1)
}
primary { id }
index { verified }
And I need to get last 20 not verified users, so I use the next query:
SELECT * FROM users WHERE verified != 1 ORDER BY id DESC LIMIT 20
But it takes 1...
Is this normal to get different results each time I execute my code?
I've written a small piece of code and whenever I run it, I get different results. Say I call two different functions in my code, sometime's the cost of Func1 is 44%, Func2 is 25%, sometimes it's 38%, 33% respectively!
What should I do to get more accurate results?
...
Hi!
I have done some profiling on a site and found that strtolower calls took unexpectedly long time.
The context is
function __autoload($class_name) {
require_once('app/model/' . strtolower($class_name) . '.php');
}
And the result is
0.0092 -> __autoload() C:\xxx\config.php:0_
0.0093 -> strtolower() C:\xxx\config.php:77
0...
Hi,
I am troubled with the following concept:
Most books/docs describe how robust servers are multithreaded and that the most common approach is to start a new thread to serve each new client. E.g. a thread is dedicated to each new connection. But how is this actually implemented in big systems? If we have a server that accepts requests...
I read very often that the BinaryFormatter has better performance then XmlSerializer.
Out of curiosity, I wrote a test-app.
a wtf moment... why is Xml so much faster than Bin (especially the deserialization)?
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Syste...
I have been wondering about the performance of regular expression implementations lately, and have had a hard time coming up with much useful information.
Its easy enough to benchmark browser/javascript regex performance (plenty of tools on the net). The javascript regex implementation in Chrome and Opera pretty much destroy every othe...
I'm testing a 2D OpenGL ES based iPhone game on both the iPhone 3G and the iPhone 4. It runs great on the iPhone 4... and pretty well on the 3G. The game state is updated at 60 Hz... and the rendering is done at 60 fps. Would the following conversion from Objective-C to c improve the performance at all?
// current Objective-C functio...
I'm developing a Django application on a shared server (Dreamhost).
A view that I'm implementing takes several HTTP GET parameters to perform database lookups and return serialized data. Some of these lookups generate several hundreds of kilobytes of data that is expensive to compute. Caching this data would be ideal as it would save bo...
Hello,
I'm creating an asp.net application (one of the many I've done).
But this is the first time I've encountered this specific problem.
When I press a button on a page the first time (so the application is already loaded) this is very very slow.
After the first time I've clicked the button, all other calls on that page go really fa...
well this problem is general in sql server ce
i have indexes on all the the fields.
also the same query but with ID IN ( list of int ids) is pretty fast.
i tried to change the query to OUTER Join but this just make it worse.
so any hints on why this happen and how to fix this problem?
...
Hello,
I want to do optimization of my android application.
Can anyone please tell what are different ways to optimize code and performance in android?
I gone through one tool i.e. Zipalign: an Easy Optimization.
Any other tools avaliable?
Thank you.
...
This is a contrived example, but consider a scenario where employees have working locations, and where employees have managers who also have working locations:
create table WorkingLocation (
ID int not null primary key identity(1,1),
Name varchar(50)
)
create table Employee (
ID int not null primary key identity(1,1),
...
I have an UITableView showing custom view cells that I've designed in interface builder. It has quite many buttons and labels and a gradient background, which makes the scrolling performance sloppy, it "lags" every time a new cell loads. I've read the guide from the guy who created Tweetie about fast scrolling, and it says it's best to d...
I'm developing an iPad app that uses a lot of hard drive space. The space is mainly
occupied by resource files inside the app's main bundle directory. There is quite a large number of them as well.
After I tap the app's icon on the device, there is an awkward pause (of probably 2 seconds) before the screen is replaced with the launch ap...
I've added a couple of additional virtual keyboard keys to my page to let the user type characters not found on the iPad's virtual keyboard. They look almost identical to keys on the iPad's keyboard, and inject the character correctly into the INPUT element. But the little (512 bytes) clicking sound .WAV that I'm playing when the user to...
I read that adding functions to an object will chew up more memory then adding functions to the prototype of the object.
function Obj() {
this.M = function() { // do something };
}
var o = new Obj();
The idea was that for every construction of Obj, a new function is created and applied to Obj, thus increasing memory use. For 1000...
Hi, I am pretty new at MS SQL.
I would like to know a starting point list of parameter to look in EXECUTION PLAN
as indicator for good or bad performance in mu query.
For example:
Should I look for Estimated subtree cost for better performance?
Any other values to look?
thanks guys for your support
...