Fix linkage enum
and change to use itertools.count
Add function attributes
Fix inline threshold
spelling error