Always inline ElementData::findAttributeIndexByName().
Created attachment 227363 [details] Patch
We already do this.