performance

MySQL/Java set<type> and get<type> What types perform better?

Given this java code... PreparedStatement s = prepare("SELECT ...") ResultSet r = s.executeQuery() r.next() s = prepare("UPDATE ...") s.setInt(1, r.getInt(3)) s.setInt(2, r.getInt(1)) s.executeUpdate() s = prepare("UPDATE ...") s.setInt(1, r.getInt(3)) s.setInt(2, r.getInt(2)) s.executeUpdate() It seems to me that MySQL JDBC would hav...

Javascript String Match Vs for loop

Hi All, I have an extjs grid and one of the column renderer function has a for loop which goes through an array of numbers and compares them with the value for every cell for the column in consideration. so I was thinking since the renderer already loops for each row, and now i have for loop runner for each row. The question is should...

Techniques for Modular CSS

I want to start using modular CSS, but I'm having trouble figuring out the best way to implement it. I was thinking I could just use a bridging technique, where I have one in my HTML and then @import statements for each module. While I like the simplicity of that method, I'm concerned about the negative effects it has on performance, si...

increase display speed of full screen adobe flash player application

HI. I'am under ubuntu 10.04, live CD. I run my adobe CS3 application in the stand-alone flash player V10. screen resolution : 1280x1024 I've set the /etc/adobe/mss.cfg file parameters. But, in full screen, the display performances are divided by 2!!! Is there a solution ? - Ubuntu optimisation ? - new flash player version ? - CS3 par...

VS2010 loads slowly. Can I profile extensions' respective startup time?

Hello, I have a simple question. Is it possible to somehow get a log of what is taking so much time to load when starting VS2010? On a default install, starting the IDE is very quick (~1-2 s), but with a batch of extensions installed, the time taken for the IDE to launch is prohibitive of using it to "just have a peek at a file". I kno...

Query Runs fast, but runs slow in Stored proc

I am doing some tests using the SQL 2005 profiler. I have a stored procedure which simply runs one SQL query. When I run the stored procedure, it takes a long time and performs 800,000 disk reads. When I run the same query separate to the stored procedure, it does 14,000 disk reads. I found that if I run the same query with OPTION(re...

New Relic v/s Yourkit for profiling and testing

Hello People, Which is better for profiling between Yourkit and New Relic(as only these two options are provided by management) for our web application, which is developed using the following :- JDK 1.5 Struts 1.3 (with tiles 1.3) EJB 3.0 Oracle 9i Velocity (for email templates) Oracle 10g WebServices (JDK 1.6) considering their pro...

Benefits and drawbacks for CAAnimationGroup vs. CAKeyframeAnimation.

Dear fellow Stackers, I'm currently working on some core animation stuff for the iOS and really enjoying myself. This question is regarding the many different ways one can implement an animation. Say you would like to rotate a UIView a few times but with different timing functions for each animation cycle. To the best of my knowledge th...

Can I selectively disable packages from loading into VS2010?

Hi, Continuation question from: http://stackoverflow.com/questions/3995253/vs2010-loads-slowly-can-i-profile-extensions-respective-startup-time After looking at the log file, it turns out there are a few packages that I'm not using much (I think): (load time) (package): (2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.Desig...

SQL Server Query is faster in SSMS when including execution plan.

In SQL Server 2005 management studio I am testing a query which uses some table variables, one of which has a clustered unique constraint on it. I am noticing that the total execution time actually goes down by a good amount when I include the actual execution plan to analyze it. What is the reason for this, and should I only test f...

High Number of MySQL Temporary Disk Tables

Hi, We have noticed that MySQL is reporting a very high number of temporary disk tables (over 10,000) this is reported by Server Density. Were trying to understand a bit more about this. Why are temporary disk tables created by MySQL? What impact do they have on performance? Are they ever removed by MySQL or will this number just inc...

Spring, JPA (Hibernate) & Ehcache Poor Performance

Hi folks, I have what I would assume is a pretty standard setup...spring, jpa (hibernate) and I'm trying to add ehcache. I have it all configured and verified that it's working...I'm logging the hibernate sql statements and cache statements and can see that the cache is getting invoked and that once the object is in the cache, when I t...

C++ - boost get question

Hello! Does someone know if the boost::get for the boost::variant is a performance-consuming operation or not. Right now I am refactoring some old code in a performance-critical part, where "varianting" was implementing by containers for each possible types and corresponding enum. Obviously, this is fast, but ugly and right now when I...

Is it worth writing part of code in C instead of C++ as micro-optimization?

I am wondering if it is still worth with modern compilers and their optimizations to write some critical code in C instead of C++ to make it faster. I know C++ might lead to bad performance in case classes are copied while they could be passed by reference or when classes are created automatically by the compiler, typically with overloa...

Is it worth it to gzip js files?

On modern browsers and computers,, is it better to gzip files to save network traffic or to not gzip them which seems like it would save browser CPU? ...

Comparing fields in a trigger

So I've created a trigger that compares update before and after and determines if specific fields, specified in the where clause, have changed. If so, I insert a snapshot of the prior information into a history table. The problem is when the field is created with null values (given the business rules, it is legitimately null) and when ...

discrete event simulators for C++

Hi All, I am currently looking for a discrete event simulator written for C++. I did not find much on the web written specifically in OO-style; there are some, but outdated. Some others, such as Opnet, Omnet and ns3 are way to complicated for what I need to do and, besides, I need to simulate agent-based algorithms capable of simulating ...

How can I optimize my database?

Hi, I am creating a platform for some clients. Each client needs to have contacts and manage them in groups, categories (which depends of the group) and subcategories (which depends of the category). The database is going to be very big, and Im afraid about the performance. I want to optimize the database; now, I have these options: M...

Why ComboBox be dropdown result whole app performance to very slow?

I have a wpf application.There is a strange thing that as long as i mousedown the ComboBox droparrow becomes all UI response very slow, regardless of whether ComboBox have items. Annoying the case only appears on some computers. Look forward to answering. ...

200,000 images in single folder in linux, perfomance issue or not?

Hi, I have a php/mysql website with over 200,00 images in single folder (linux server). I don't think, that I will never need to see them in file explorer, instead they will be viewed on website on their individual pages. They are just displayed in product page on website. File system is ext3. so is it wise to save them in single fold...