using "getFieldByName()" is also slower in my framework, because it's doing a lookup via the index (eg. if name = name[i]...), which is a tad crap ;-)
I'm changing it so that the name lookup comes off a TMap cache instead, so retrieving any field by name (whether it's the first or the last) will take the same amount of time.
I've always just used the "Index" lookup myself, which I suppose is why the "Name" lookup hasn't had much optimization done on it.
Still, thanks to your using it, it gets better :-)
I'm changing it so that the name lookup comes off a TMap cache instead, so retrieving any field by name (whether it's the first or the last) will take the same amount of time.
I've always just used the "Index" lookup myself, which I suppose is why the "Name" lookup hasn't had much optimization done on it.
Still, thanks to your using it, it gets better :-)