slow

MySQL slow query with join even though EXPLAIN shows good plan

Hi, I have the following scenario: In a MySQL database, I have 2 MyISAM tables, one with 4.2 million rows, and another with 320 million rows. The following is the schema for the tables: Table1 (4.2M rows) F1 INTEGER UNSIGNED NOT NULL PRIMARY KEY f2 varchar(40) f3 varchar(40) f4 varchar(40) f5 varchar(40) f6 smallint(6) f7 smallint(6) ...

WPF Application is slow / jerky whilst being moved

I have a rather basic shell of a WPF app that I am creating. When I move it using the DragMove() function the app moves properly but seems to "jerk" a lot. It seems to me that the redraw rate is very low making the application look slow and unresponsive. Currently there is no "code" besides a call to DragMove(). The XAML consists of a...

How do I improve the performance of this simple LINQ?

I have two tables, one parent "Point" and one child "PointValue", connected by a single foreign key "PointID", making a one-to-many relation in SQL Server 2005. I have a LINQ query: var points = from p in ContextDB.Points //join v in ContextDB.PointValues on p.PointID equals v.PointID w...

Slow Visual Studio 2008 performance from IDE when viewing all data sources

We are using Visual Studio 2008 for our development of our core product. We have a C# solution with roughly 5 projects and 250 data sources. It takes anywhere from 15-25 seconds any time I do either Data > Show Data Sources, or if I click a (DataBindings) control property drop-down to bind a value of a control to a Data Source. Aside ...

Qt:when Loading large (2 mega each ) images into listWidget its very slow

I have simple QlistWidget that im loading images in one call using this code : ui.listWidgetImages->setIconSize(QSize(60, 60)); QStringList::const_iterator i = filenames.constBegin(); // QStringList that holds the images paths while (i != filenames.constEnd()) { QString value = *i; QListWidgetItem *standardItemnew = new QListWidge...

JQGrid Redrawing is slow

Hey Everybody! So i've had JQGrid in my application for a while now and the speed of the grid hasnt really bothered me up until I started optimization. If find that even if I have a small grid (20 items per page) the hover highlighting is slow and if the grid happens to need a scroll bar on the page, the scrolling of the page is really...

OpenCV Python binds incredibly slow iterations through image data

Hey, I recently took some code that tracked an object based on color in opencv c++ and rewrote it in the python bindings. The overall results and method were the same minus syntax obviously. But, when I perform the below code on each frame of a video it takes almost 2-3 seconds to complete where as the c++ variant, also below, is insta...

(vim profiling) VIM 256 colors mode, laggy php files

Hi, I'm using 256-colors theme in vim (set t_Co=256) and all php files opens about 8 seconds. It's my local dual-core machine It doesn't depend on color scheme I used (zenburn, wombat, wombat256) HTML, Python, JS or every else files opens momentary It takes about 8 sec even to create new php files (:o newfile.php) I've setting up my te...

Very slow function, is there a faster way? (using jQuery 1.4.2)

The following function needs at least 3 seconds to run (on 500 table rows). Is it possible to make this function faster? function prepareTable() { var groupIndex = 0; $("#row tbody tr").each(function(index) { // each row gets a unique id // remove default css styles for table rows // read out hidden value, that store...

Why does the Rich Text Box freeze when loading a large string?

I have a program where I basically need to load Rich Text from a StringBuilder. The problem is, somethimes I get a string that is 100,000 lines long (and this is a possible situation for the program), including Rtf codes and colours. The problem isn't building the string, it's when I asign the Rtf property to the StringBuilder.ToString...

How to determine why is Java app slow

Hi! We have an Java ERP type of application. Communication between server an client is via RMI. In peak hours there can be up to 250 users logged in and about 20 of them are working at the same time. This means that about 20 threads are live at any given time in peak hours. The server can run for hours without any problems, but all of a...

Visual Studio DataSet Designer Saving is VERY slow

Hi, workig with Visual Studio 2008 DataSet Designer has become a pain in the a*s. I have a quite big dataset (>50 Tables) and saving chages takes A LOT of time (I am talking here about 10-15 minutes!). It cannot be a hardware issue since I have an Intel i7, 8 GB RAM and 7200rpm HDD. Has anyone an idea? (This "bug" occurs on every PC wor...

iPhone programming Quartz Slow

Hi there! I'm making a game which requires multiple images to be drawn on the screen. The code I'm using for this is: - (void)drawRect:(CGRect)rect { for (i=1;i<=totalImages;i++) { if (imageExists[i]) { [image drawAtPoint:CGPointmake(imageX[i],imageY[i])]; } } } This drawRect is called by a function: ...

What is causing one Vista machine to be 10 times faster than another machine?

We run a Fortran console program we have run for years. Recently we purchased identical new HP server class machines (4 processors, 8 gig ram, 4 hard drives) for everyone in the office. We configured them identically as nearly as we know. We can compile the Fortran program on one machine, pass the executable to the different machines,...

Regular Expression for detecting repeated substrings is SLOW

I am trying to come up with a GNU extended regular expression that detects repeated substrings in a string of ascii-encoded bits. I have an expression that works -- sort of. The problem is that it executes really slowly when given a string that could have many solutions The expression ([01]+)(\1)+ compiles quickly, but takes about...

Visual Studio 2010 Intellisense slows down everything

Hey. I have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I'm meaning: Most other open windows become unresponsive Typing is delayed Build times increase 10-fold Saving takes forever I am sure this is an Intellisense issue; disabling it solves everything, and...

Why is this bit of code taking so long?

I'm doing what seems like a simple read from a data file, and it's taking for fricking ever. (And by that, I mean 300ms.) This is the code in question: BufferedReader f = new BufferedReader(new FileReader("input.txt")); StringTokenizer st = new StringTokenizer(f.readLine()); int var1 = Integer.parseInt(st.nextToken()) int var2 = Integer...

Slow getimagesize

Hi all, I need to show multiple posts on my website. These posts are combined of internal and external posts. The external posts are periodically imported and saved in my DB using a cronjob. Before showing the posts I extract the text from all HTML. In addition I try to locate the first image contained in the post, continuing until I f...

Flex AdvancedDataGrid slow on performance while being resized

I have a AdvancedDataGrid which is placed inside a resizable container (custom panel) and fixed at 100% width and height. Datagrid has about 100 rows and 15 columns. When I try to resize the container datagrid kinda freezes. I understand that while resizing the whole redraw process is being held in my datagrid but are there any ways of o...

shared_ptr: horrible speed

When comparing two variants of pointers (classic/shared_pt) I was surprised by a significant increase of the running speed of the program. For testing 2D Delaunay incremental Insertion algorithm has been used. Compiler settings VS 2010 (release) /O2 /MD /GL, W7 Prof, CPU 3.GHZ DualCore Results: shared_ptr (C++ 0x00): N[points] ...