topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 4:54 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Speed Up Mobysaurus Thesaurus Startup  (Read 13456 times)

Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
  • Two there should be; no more, no less.
    • View Profile
    • FreeThesaurus.net - The Free Online Synonym Finder
    • Read more about this member.
    • Donate to Member
Speed Up Mobysaurus Thesaurus Startup
« on: January 22, 2007, 01:51 AM »
It's not uncommon for a .NET application (like Mobysaurus Thesaurus) to take quite some time starting up when you *first* launch it (cold startup) after turning on your PC, or re-launch it after you have it closed for a long while.

Same to all .NET assemblies, the Mobysaurus Thesaurus executables cannot be started "straight away", they store "temporary code", in other words. Your operating system actually first loads .NET Framework components (the translator) into the memory and they will further compile the original assemblies to native code that will specifically run on your PC. So it would take longer for a .NET app to start up; and if Mobysaurus Thesaurus is usually the first .NET program to run on your PC, there are gonna be quite some hard disk activities during the launch because the system has to load all these .NET framework components into memory for the first time before any actual "temporary code" translation can begin.

There's a way to pre-compile the .NET assemblies, cache native images and thus improve startup time - with NGEN, a tool that ships with .NET Framework installation package. So if you have .NET Framework 2.0 installed, you can take advantage of this NGEN tool.

I've made a batch file, just download and run it from your local machine. Takes about 20 seconds to complete the whole speed-up process and the effects will remain until you update your Mobysaurus Thesaurus next time.

Click the link below to download:
http://www.mobysauru...saurus/moby_ngen.bat


Source code
REM change "c:\program files\Mobysaurus Thesaurus\" to your actual installation path of .NET Framework 2.0, if needed
REM change "c:\program files\Mobysaurus Thesaurus\" to your actual installation path of Mobysaurus Thesaurus, if needed

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen queue pause
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen install "c:\program files\Mobysaurus Thesaurus\MSThesaurus.exe" /queue:1
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen install "c:\program files\Mobysaurus Thesaurus\MCLHotkey.dll" /queue:2
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen update /queue
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen executequeueditems 1
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen queue continue


Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
  • Two there should be; no more, no less.
    • View Profile
    • FreeThesaurus.net - The Free Online Synonym Finder
    • Read more about this member.
    • Donate to Member
Re: Speed Up Mobysaurus Thesaurus Startup
« Reply #1 on: January 22, 2007, 03:17 AM »
Another nice way (suggested by mouser) to keep Mobysaurus Thesaurus always handy is to activate the "Minimize to Tray" and/or "Close to Tray" options.

Simply go to Menu "Settings -> Options" to check them:

Screenshot - 22_01_2007 , 8_11_05 PM.png


The program will just stay in your system tray area after you click on the minimize/close button, and it's easy to restore the main window:

1. Left-click on the tray icon            OR

2. Press the hotkey (Ctrl + Alt + A, by default)