Here some tips how to optimize the performance of Darwin.

Before optimizing, you need to know where your problem sits. So first you have to ask yourself/your customer:

1.) Does it take long until the splash screen shows up?
2.) Does the log in window long to show up?
3.) Does it take long until the database list shows up?
4.) Does it take long to switch between database views?
5.) Does it take long to open a recording?
6.) Does it take long to analyze a recording?

All these problems have different reasons.

Opening a recording is slow

Most likely reason: The (network) drive where the raw data is stored might be slow.

Open Darwin and in the database find a recording that is typical for your work, e.g. a 24h ECG recording. Hold down CTRL+Alt+Shift (all keys in the lower left corner of the keyboard) and click on the database entry. Darwin will launch a windows explorer that shows the raw data of that recording. In my case that's 220MB of data. Start a stopwatch. Mark the data and copy the files to a folder on your computers desktop. In my case it took 4 seconcs, that's 220/4 = 55 MByte per second. If you want to repeat that test, try with a different recording (windows might cache the data, which then gives incorrect results). If your system is significantly slower, talk to your IT person.

Network share issue: In Darwin2.8.2 we addressed an issue (#4313) where Darwin in some cases accessed the SMB-network share significantly slower than the normal windows explorer did.

Testing true network speed: If you are not sure about your network speed, then run the network test tool NetIO on the client and on the server PC. Here you also get info about network responsiveness ("Ping").

 

Importing recordings is slow

Most likely reason: The card reader or the memory card is slow

First you should know what file sizes to expect. As a rule of thumb expect aprox. 200MB of data per day. Insert a memory card into the card reader. Find a big file on that card. (The file already needs to be on the card. If you copy it on to the card now, windows might cache it and then the test won't work). In my case it's a file with 990MByte. Copy the file to your desktop and stop the time copying needs. In my case that's 1min41 = 101 seconds. 990/101 = 9.8MByte per second. Importing a 200MB recording would therefore take 200/9,8 = 20 seconds. Don't repeat the test with the same file. Windows might cache the data and the result might be incorrect then. If your card/cardreader is significantly slower, then talk to your IT-person.

ATT: Also take a look at the Anti-Virus problem in the "Observer takes long to detect..." section below!

medilogAR via USB:  The medilogAR recorder uses USB2 at ~0.5MB/sec. A clean 24hour recording with 60MB is downloaded in 2 minutes, a noisy 200MB recording will take 6 minutes.

 

Observer takes long to detect MT101 or BR102+

The communication with these 2 recorders is unfortunately a bit slow. We improved speed and added a bit more feedback (so users don't think the observer is dead) in Version 2.7

Please install V2.7 or newer and check if things work better then.

 

Observer takes long to detect newly inserted memory card

Anti-Virus: It might happen, that an anti-virus software sits on the PC that scans every inserted card, before the card is made accessible. Configure the AV-software, to NOT scan *.mk4, *.m12, *.tom, zero.dat and ignore.m* files.

Auto-notification: Preferred bugfix: Install Darwin2.7 or newer. Really. In older versions, the Observer was looking for new recordings every 10 seconds. In V2.7 the observer automatically get's notified about newly inserted cards, and therefore reacts quicker.

Investigation: If this doesn't help or you don't like the idea: Launch regedit. Navigate to HKCurrentUser/Software/SpoonworX/Development (you might need to create that path first). Create a new string value "ShowDebugs" and give it the value "1". Close and restart the Observer. You will see a little log window that shows a bit what the observer is currently doing. 

Now slot in a card and look at the log window. A message "TfrmObserverMain.shMediaChangeMediaInserted..." indicates, that the card was inserted. Now you have to do some thinking about the mysterious lines on the screen. Have fun :)

 

Building database view is slow

If the database contains MANY entries, opening the database browser might be slow. Before investigating the database, make sure that the problem is not caused by network issues. Open the database view directly on the server machine. If this is fast, then the network is the real bottleneck. Read the VPN-article below. Otherwise (if really the database is slow) : For investigation a test database with 350.000 entries (recordings and patients) has been created. Open the database view (sorted by patients name) took 25 seconds. After update from Firebird 2 to Firebird 4 (requires Darwin 2.10.1 or higher - observe instuctions on how to update the database!!!) this time dropped to approx. 16 seconds. More optimizations require knowledge of the server (eg available RAM. Refer to articled on speedup: https://ib-aid.com/en/articles/45-ways-to-speed-up-firebird-database/ and https://ib-aid.com/en/articles/23-more-ways-to-speed-up-firebird/ . 

(Internal investigation on this issue see Confluence). Independently from that, it makes sense to delete entries that will never be needed again anymore.

 

Working over VPN is slow

Unfortunately there's no real solution for that. Using Darwin via a VPN can be problematic, and this has various reasons:

  • When reading a recording from a recorder, the client will need to upload ~100MB of data to the server (and most clients have a good download- but not a good upload-speed).
  • When the recording shall be analyzed, the recording (~100MB for 24hrs of ECG) needs to be downloaded to the client. That takes time.
  • Even if sequential reading/writing of files via VPN is fast, often VPN have slow network response times. This will make the database connection very slow, as the database does a lot of ping-pong-talking.

To solve that problem we recommend to use a VDI / Citrix / terminal services solution instead. In this case only the upload to the server has to be performed once, then the network only needs to transmit screen content and no ECG data.

 

Editing recordings in Darwin is slow

Have a look at this article