slow

iPad Obj-C Sketch Application Slow Performance

Hey everyone, I'm trying to whip up a sketch application for the iPad so that I can draw with my finger. I've got a problem that the performance is atrocious. I've pasted a snippet of the core of my code below. In reality it's a bit more complicated. Does anyone know off the top of their heads why this CGContext stuff is slow? I'd appr...

Speeding up the rails 3 development server

Now that Rails 3 is out, my favorite dev-mode plugin (rails-dev-boost) is broken. I'm working on a large application (>100 models and controllers) and loading them all every request takes more than ten seconds. I could turn config.cache_classes on, but then I might as well run in production mode since I have to restart the server every c...

mysql_connect() crash php-fpm on Nginx?

I have moved my web application to a new server (nginx, mysql, php) with everything the latest version. After that, I notice the application doesn't run very stable. Sometimes it is quick in response, sometimes very slow. Then I look at the 'top', 'mysql-slow-log', and error log, here what I found out: periodically, mysql-slow-log wi...

Slow JavaScript Regex when using global attribute

I am trying to replace strings in brackets in some html string. When I use a regular replace, its fast, when I try to create a pattern for global replace, it ends up throwing a stack overflow error. It seems like somewhere along the process path, it converts my single string to an array of characters. Any ideas? var o = { bob : 'is cool...

Google maps slow loading. Over a minute to load markers.

Hello, I am only showing a certain number of markers at a time (i.e. 5 out of 10, the other 5 will appear depending on where the user pans). When the user pans the map to where other markers are supposed to appear it takes 60-70 seconds for them to appear!! ...

SSIS Post Execute phase takes too long

I have a SSIS Package (SQL Server 2005) which has a very simple control flow and a data flow. The package runs acceptably fast, but the Post Execute phase is ridiculously slow - the whole package takes 90 minutes to execute, from which 37 are the PostExecute phase. I don't have any event handler on that step, the source and the destinat...

Slow response from getaddrinfo on EC2

I have an ec2 instance used as LDAP server with the following example DNS names assigned by Amazon: Public DNS: ec2-123-231-312-132.compute-1.amazonaws.com Private DNS: ip-10-11-12-13.ec2.internal The instance has 123.231.312.132 public IP address and 10.11.12.13 private IP address respectively. I have also set external dns records ...

Find queries from Process ID (MySQL 5.1.x)

I have a sleeping MySQL process and it crashed my MySQL. I cannot find it through SLOW LOG. I know its process ID. How can I retrieve query behind this process ID? Thank you, ...

C# Disk Seek/Position Change Lag using CreateFile Function

I'm currently using the CreateFile function to read a disk using a BinaryReader, and it seems as though whenever I seek or change the position of my stream, it can take anywhere from 200 milliseconds to 900 milliseconds. The code is basically exactly what you'd think it would be... for (int i = 0; i < f.BlocksOccupied.Length - 1; i++) ...

What hardware is needed to run the Android emulator fast?

My home PC is an Intel E6300 with 4GB RAM. My company PC is an Intel i5 quadcore with 4GB RAM. I ran the latest Android emulator (came with SDK) on both PC's (both running Windows 7 x64), and it was unbearably slow on both PC's. On my home PC, I ran Windows Phone 7 emulator and it worked smoothly. I booted up with my Hackintosh on the s...

How do I speed up JTable built in table sorting?

I have a JTable with a custom TableModel that extends AbstractTableModel. I have also used the built in table sorting by calling: table.setAutoCreateRowSorter(true); The model also return the right class of the data for each column from the getColumnClass() call, which from what I read should ensure the fastest sorting being done. W...

Listview's ArrayAdapter notifydatasetchanged() very slow redraw

I've a quite simple list with 3 textview fields on each row. We are updating their values every 2 seconds or so with data coming from a background webservice call ( AsyncTask ) We compare the coming values with the current ones, update them accordingly on the Adapter and finally calling notifyDataSetChanged() if needed The thing is th...

Django request impossibly slow, can't find why

I have an Apache2 + mod_python setup which has begun responding impossibly slow since some days - two seconds of processor time for any request of my app. Some interesting points: Debugbar says it's ~15ms of query time. DB is not the main suspect Logging with datetime.now() shows 0.1s is spent inside the view, and 40ms more are spent i...

Debug is very slow when attache to process aspnet_ws

When working using attache to process aspnet_ws on local computer the debugger work so slowly it can take 5 sec for each line when connecting to external server the debuger run fast what can be wrong ? ...

What does the JBoss 5 shutdown do?

At a high level, what does JBoss 5's shutdown do? What might go wrong if I just kill the java process instead of gracefully shutting down JBoss? A graceful JBoss 5 shutdown takes about 6 minutes for my application, which is pretty big and has 305 EJBs. JBoss seems to pause for a long time just before unbinding the EJB LocalHomes from ...

WCF connections close very slowly with SSL

We have WCF services that operate over multiple protocols for different customers. Most work fine, but when we use SSL the connections take a long time to close. Opening a connection is no problem, but closing is very slow. The strangest behavior is that the close time is proportional to the amount of data that was transmitted on the co...

How slow is too slow for unit tests?

Michael Feathers, in Working Effectively With Legacy Code, on pages 13-14 mentions: A unit test that takes 1/10th of a second to run is a slow unit test... If [unit tests] don't run fast, they aren't unit tests. I can understand why 1/10th a second is too slow if one has 30,000 tests, as it would take close to an hour to run....

How can I quickly fix EBCDIC control characters in large files using Perl?

My apologies if this comes across as a newbie question. I'm not a Perl developer, but am trying to use it within an automation process, and I've hit a snag. The following command runs quickly (a few seconds) on my Linux system (Ubuntu 9.10 x64, Perl 5.10), but is extremely slow on a Windows system (Windows 2003 x86, Strawberry Perl 5.12...

High CPU - What to do.

Hello everyone i have a high CPU problem with MYSQL using "top" ( linux ) shows cpu peaks of 90%. I was trying to find the source of the problem, turned on general log and slow query log, The slow query log did not find anything. The Db contains a few small tables and one large table that contains almost 100k rows, Database Engine is ...

Slow search of minimum in list of maximums with sql with-clause

I have question about this query, a little bit slower for me :( My problem : I'm searching the minimum ticks in a list which contains each maximum of each list of ticks by seed. => Equal to min( max(seed1), max(seed2), max(seed 3), etc. ) PS : Each seed contains ~ 10000 rows (1 row = 1 ticks) PS2 : I have one table with contains all ...