SQLite is a flat-file database and MySQL is a normal database. That's great but I'm not sure which is faster where or better for what? What are the pros and cons of each option?
Is there really any difference between using
If(this)
{
}
Else If(that)
{
}
Else
{
}
or using,
If(this)
{
}
If(that)
{
}
Else
{
}
?
Does one execute any faster? Does the compiler or architecture make any difference?
Hey, I right now have a list of a struct that I made, I sort this list everytime I add a new object, using the std::list sort method.
I want to know what would be faster, using a std::multimap for this or std::list,
since I'm iterating the whole list every frame (I am making a game).
I would like to hear your opinion, for what should I use for this incident.
I am trying to decide on whether I should learn C or C++. I come from a very object-oriented background of java and C#. I have heard that C++ is more object-oriented than C, BUT I have also heard that a C program compiles and runs faster than a C++ program. Please help me get the facts straight by giving pros and cons of BOTH points of views. (Points of views being C over C++, or C++ over C)
I have the following command
find /var -type f -exec grep "param1" {} \; -print
With this command I can find the param1 string in any file under /var
but the time that it take for this is very long.
I need other possibility to find string in file but much more faster then my example
THX
yael
I have an Oracle SQL query as part of a stored proc:
DELETE FROM item i WHERE NOT EXISTS (SELECT 1 FROM item_queue q WHERE q.n=i.n) AND NOT EXISTS (SELECT 1 FROM tool_queue t WHERE t.n=i.n);
A bit about the tables:
item contains about 10k rows with an index on the n column
item_queue contains about 1mil rows also with index on n column
tool_queue contains about 5mil rows indexed as well
I am wondering if the query/subqueries can be optimized somehow to make them run faster, I thought that deletes were generally fairly fast
I just read that Android has a 450% performance improvement because it added a JIT compiler, I know what JIT is, but I don't really understand why is it faster than normal compiled code? or what's the difference with the older approach from the Android platform (the Java like run compiled bytecode).
Thanks!
Rumour has it that this;
SELECT * FROM lineage_string where lineage like '%179%' and lineage regexp '(^|/)179(/|$)'
Would be faster than this;
SELECT * FROM lineage_string where lineage regexp '(^|/)179(/|$)'
Can anyone confirm ? Or know a decent way to test the speed of such queries.
Thanks
Hi all, basically i am launching a site soon and i predict ALOT of traffic. For scenarios sake, lets say i will have 1m uniques a day. The data will be static but i need to have includes aswell
I will only include a html page inside another html page, nothing dynamic (i have my reasons that i wont disclose to keep this simple)
My question is, performance wise what is faster
or
I have been using php for quite few years and now i want to learn ASP.net for web development cause I have found it pretty faster than PHP?
Despite Speed, I want to know which has more flexibility, user friendly, easy learning and powerful capability.
Hi all,
I'm hoping someone can shed some light on this for me
What are the differences, in Delphi 2009, between the CompareStr (defined in SysUtils) and CompareString (from Windows API) functions?
Both let you specify the locale to be used, is the Windows one simply more "complete", due to the available comparison flags? Is one consequently faster than the other?
Thanks!
As far as I know, these days there are two main techniques used for including CSS in a website.
A) Provide all the CSS used by the website in one (compressed) file
B) Provide the CSS for required by the elements on the page that is currently being viewed only
Positives for A: The entire CSS used on the site is cached on first visit via 1 http request
Negatives for A: if it's a big file, it will take a long time to load initially
Positives for B: Faster initial load time
Negatives for B: More HTTP requests, more files to cache
Is there anything (fundamental) that I am missing here?
I've learned today, if you append to your query
OPTION (MAXDOP 0)
your query will run on multiple processors and if it's huge query, query will perform faster.
I know general guidelines on query optimizations (using indexes, selecting only needed fields etc.), my question is about SQL Server optimization. Maybe changing some options in configurations or anything else.
What guidelines are there for SQL Server Optimization?
Thank you.
Which in C# compiled for x64 is faster?
a. int * int;
b. if(int < 0) int = -int;
c. Math.Abs(int)
I need pure theoretical answer. Please do not tell me to write loop and measure it with stopwatch.
Thanks
Typical jQuery over-use:
$('button').click(function() {
alert('Button clicked: ' + $(this).attr('id'));
});
Which can be simplified to:
$('button').click(function() {
alert('Button clicked: ' + this.id);
});
Which is way faster.
Can you give me any more examples of similar jQuery over-use?
My HTML page contains many tables,with numerous tr and td. While rendering in IE8/IE9 the
its very slow but in Firefox its fast. I had read somewhere while drawing tables if the tables are not of fixed width, IE calculates the width every time and renders so usually slow.
Right now i am adding Table style="table-layout:fixed" which made me feel its faster.
Are there any similar styles that can be added to tr and td as well.Also
suggest if there any other attribtes that can be added to a table
Is server side pagination where the pagination script calculates the number of entries in a database then make the links?
All I know is server side is faster and better if there is alot of data and client side is using javascript?
What makes a pagination script server or client side?
Also, right now I am planning to use this pagination which is like digg-style. Can someone tell me if that is server-side pagination?
(sorry if my terminology is off)
PHP is just awful but atm the only cheap server technology available.
If you want free hosting you are stuck with php. If you want cheap hosting too.
Windows hosting is like 3x the pice.
It's amazing how much effort people put into executing a task in php while they could this 10 times faster and better with a real language/server platform (asp.net).
Just my 2 cents.
Hi there,
I want to have a function in my zsh for faster accessing my todo-files. It should look inside the folder ~/tasks where i put my todo-lists and stuff. Now i want to type task p and when I hit tab, it should use the files in that directory for autocompletition. Can anyone point me some direction? Or share some snippet to work with?
Thanks
I've seen some mkspec for mac or linux using llvm.
Does anyone use an llvm compiled version of Qt ? Or llvm on their Qt Projects ? does it speed up compilation times ? Is your project faster ?
Pitch means "perceived frequency". Nice. But when I make pitch very low in OpenAL, sound plays a lot of times longer. If I make it very high, sound plays very short but with high frequency. For me, logically the consequence of making slower or faster.
Or is pitch != speed?
I'm using chrome (the dev version for my mac).
I was looking at the timeline for my page loading and I saw that there is a 150ms delay due to some garbage collection taking place while loading the page.
http://cl.ly/cce10619c698a5b276e2
It's the yellow line.
I was curious if there's any way to stop this, delay it, whatever so I get the page to load faster?
G-Man
Okay so i need really FAST algorithm or code in C if you have any it would be nice. The task is to sum all numbers from 1 to N for a given number N (it can be negative number too), so i did the usual way (you know just summing with loop from 1 to N) but it's not fast enough - i need something faster, i guess that i need the fastest possible way to do this.
If anyone could help me, please do. Thanks.