WMRegOptimizer - v0.1, October 6, 2008

Search This thread

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,688
www.chainfire.eu
This small tool was originally inspired by this thread: http://forum.xda-developers.com/showthread.php?t=432966

About
WMRegOptimizer is a small tool that tries to optimize registry access - "defrag" it, if you will. It doesn't perfectly defrag it, but it goes a long way. This results in somewhat faster registry access for applications where this is the bottle-neck.

So this speeds up my device?
Not really. It lowers latency for certain system calls, which may result in some things being a bit faster. It doesn't magically make your device faster, but it may be more responsive in some situations.

Instructions
Install the attached CAB on your device, and run WMRegOptimizer from your start menu.

Before pressing Go, make sure you do the following things:
- Close all running applications
- Uncradle the device
- Put the device in airplane mode
- Be sure your battery isn't on the low side


After the app says it's done, close it, and soft-reset your device.

The app may appear to freeze at times. Do not soft-reset or terminate the app. It will continue. The entire process may take up to 5 minutes.

Things going wrong is unlikely but by no means impossible, we want to minimize that chance. We do this by making sure as few apps and services as possible are using the registry. Mucking about with the registry is a dangerous thing, and if things do go wrong, often a hard-reset is needed to put things right again.

Why soft-reset
Some apps 'monitor' the registry, these will be informed of the changes. This is why you may for example get a QuickGPS popup or your backlight will go to full-power all of a sudden when the app is running. Soft-resetting makes these apps reread the correct data from the registry. The whole operation also messes with the registry a LOT, and this slows down the device as well (probably a bug or memory/handle leak in registry handling somewhere in WM). Again, soft-resetting clears this up.

Testing
This tool has been tested on my Raphael (Touch Pro), Diamond and Kaiser (TyTN II), and seems to work fine. Your milage may vary. The interface isn't much, but hey, it's about what it does :)

PROVIDED "AS-IS". USE AT YOUR OWN RISK. DO NOT REDISTRIBUTE.

DO NOT USE THIS APPLICATION ON A STOCK ROM, YOU WILL BE SORRY. Custom ROMs usually have the right registry permissions/policies to do this, but if not, there's a bigger chance things may go wrong.
 

Attachments

  • WMRegOptimizer.cab
    86.8 KB · Views: 4,341
Last edited:

uniqueboy

Senior Member
Apr 11, 2006
1,421
5
Cool for Diamond

Hi Chainfire, thanks for the tool. I've just run it on my Diamond and everything still works I'm happy to say. I can't notice any immediate difference but then I didn't expect too, any way seems to be a good app. with no diamond issues, Thanks again. :)
So would you recommend running this regularly, I seem to install and un-install stuff all day long, so is this reg. defrag going to help keep my phone in slick order?
 

rexypow

Senior Member
Oct 22, 2005
74
1
selangor
yes! its works!

thank you very much for your great program! I installed it on my Gene P3400 (lomlom's 20755 rom with manila2d), it definitely response quickly when try to go to setting - system, it is also have improvement when I try to make a call, it is much more faster when I try to send a sms from my contact list, strongly recommended to all Gene P3400 user!
 

boggsie

Senior Member
Oct 12, 2007
405
39
Columbus
Seemed to work fine.

The only issue that I had is the completion percentage never exceeded 80% even though the text eventually updated to Complete or whatever the done message happens to be.

Best regards,
-boggsie
 

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,688
www.chainfire.eu
So would you recommend running this regularly, I seem to install and un-install stuff all day long, so is this reg. defrag going to help keep my phone in slick order?

Not really. It may help, but it's unclear how fast this whole registry muck-up is, it really depends on your usage of the device. I'd say once a month would be more than adequite for even a heavy user. Unless you notice your device is getting slower and slower, then give it a shot.

Or in short: who knows :D

Seemed to work fine.

The only issue that I had is the completion percentage never exceeded 80% even though the text eventually updated to Complete or whatever the done message happens to be.

That probably means that at 80% it got to a registry key it was not able to manipulate and aborted the operation (note that 99% of the time it will abort in such a case before it 'damages' your setup). Not to worry though, at 80%, you've had pretty much all the registry keys who 'fragment' a lot and cause the slowdowns.

I'll add some code in the next version that just skips the relevant key or gives you an actual error message or whatever :)
 

zocster

Senior Member
Apr 21, 2008
2,365
34
Christchurch
andyghozali.info
thanks for this, trialing it out and will report soon, done it and it seems to have improved, any improvement is good improvement for a device this old, until I get my touch 3G!

Cheers!!

Edit it seems to be good for the hermes, the only downside if it is a downside is that it removed my wallpaper, which I can re set by going to the today screen config anyway. But everything seems swell. SPB mobile shell 2.1 crashes less with this, normally it would crash for me once in a day after heavy use. Hasn't yet touch wood.

So ... all in all, I think follow the instructions good for the hermes.
 
Last edited:

imfloflo

Retired Moderator
Apr 20, 2007
3,057
808
Clermont-Ferrand, France
Thanks, i install and run it on my POlaris with the RTM from M-amine.
See any change for the moment, i just lost my register manila weather city and my manila favorite contact after rebooting.
(that's not important :) i'll add them again)