13
votes
Vote UpVote

FieldByName, or why a Profiler is your friend

DelphiTools – I recently bumped on a post by François on FieldByName performance, and was bit surprised by the magnitude of speedups reported by Marco Cantu in a comment: ” I keep fixing similar code I see my clients use, and in some case the performance can increase 5 to 10 times, for large loops. Good you are raising this problem. ” We have similar-looking code being used here in our datasets (which aren’t TDataset-related at all however), and yet, repeatedly looking up fields by name isn’t a performance issue (it hardly registers in the profiling results, even in worst case ...
Favorite? Off-Topic? Eric @ 2010-11-30 17:51

Statistics

Visits: 1687
Votes: 13
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Chris Rolliston
Daniele Teti
François
Jan Derk
knight_killer
Mohammed Nasman
Primoz Gabrijelcic
Rob McDonell
stukelly
TOndrej
vcldeveloper
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)