Considerations for Registry Use

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

For Windows Mobile development, memory usage is an important consideration, and the registry is no exception. The following guidelines are based on the fact that it takes less memory to store a value than to store a key:

  • Keep your key depth as shallow as possible. Eliminate unnecessary subkeys.
  • When possible, replace subkeys with entries. For example, a subkey Colors might be replaced with an entry named Colors.
  • Store as much information in one value as possible. For example, a date value could be formatted to include the time rather than using two values.

See Also

Concepts

Registry Fundamentals
Protected Registry Keys and Values

Other Resources

Registry Overview