- Upgrade to 4.0.1.
- Delete superfluous data (big movies, applications, photos) to make sure the phone is not full to the brink.
- Disable international keyboards you do not use, in case you activated them.
- Switch off 3G. Preferences > General > Network.
- Switch off location services. Preferences > General > Location Services.
- Switch off Push notifications. Preferences > Notifications.
- Switch off Spotlight Search. Preferences > General > Home Button > Spotlight Search. Unselect some or all.
- Do not use Folders.
- Restart. Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.
And then some things that may hurt, as some of your data will be deleted:
- Reset the phone. Preferences > General > Reset. Choose which items you want to reset.
- Restore the phone to factory settings. In iTunes, the tab Summary, click on Restore. http://support.apple.com/kb/HT3828
- Downgrade to iOS 3. I would not dare doing this myself, and do not know how to do it. However, you should be able to find instructions elsewhere if you search for it. Apple does not currently support this.