- (BOOL) unfiltered {
_profile(Package$unfiltered$obsolete)
- if (obsolete_)
+ if (_unlikely(obsolete_))
return false;
_end
_profile(Package$unfiltered$hasSupportingRole)
- if (![self hasSupportingRole])
+ if (_unlikely(![self hasSupportingRole]))
return false;
_end
}
- (NSString *) mappedSectionForPointer:(const char *)section {
- _H<NSString> &mapped(sections_[section]);
+ _H<NSString> *mapped;
- if (mapped == NULL) {
+ _profile(Database$mappedSectionForPointer$Cache)
+ mapped = §ions_[section];
+ _end
+
+ if (*mapped == NULL) {
size_t length(strlen(section));
char spaced[length + 1];
_end
_profile(Database$mappedSectionForPointer$Map)
- mapped = [SectionMap_ objectForKey:string] ?: string;
+ string = [SectionMap_ objectForKey:string] ?: string;
_end
- } return mapped;
+
+ *mapped = string;
+ } return *mapped;
}
@end