Project

Profile

Help

Difference Between Feature and FeatureKeys.

Added by Sathya Selva over 4 years ago

What is the Difference Between Feature and FeatureKeys. Where we use the Feature and FeatureKeys. Thanks in advance...


Replies (2)

RE: Difference Between Feature and FeatureKeys. - Added by Michael Kay over 4 years ago

FeatureKeys are strings, and are retained (a) for backwards compatibility, and (b) for use in interfaces where configuration parameters can only be supplied as strings.

The Feature object is new in 9.9, and makes FeatureKeys obsolescent. The advantage is (a) they are type-safe, because the type is parameterized with the expected type of the value, and (b) they are faster to look up; previously we were doing a lot of comparisons of lengthy strings to check if a particular option is set, and this showed up in some performance profiles.

    (1-2/2)

    Please register to reply