0
votes
Vote UpVote

I wish I had dcc32 -dontmakemycodeslow

Delphi sorcery – Quick, what is wrong with this code performance wise?function TWhereIterator<T>.MoveNext: Boolean;var current: T;begin Result := False; if fState = STATE_ENUMERATOR then begin fEnumerator := fSource.GetEnumerator; fState := STATE_RUNNING; end; if fState = STATE_RUNNING then begin while fEnumerator.MoveNext do begin current := fEnumerator.Current; if fPredicate(current) then begin fCurrent := current; Exit(True); end; end; fState := STATE_FINISHED; fEnumerator := nil; end;end;Maybe you have read this article in the past (if ...
Favorite? Off-Topic? noreply@blogger.com @ 2017-05-11 21:37

Statistics

Visits: 652
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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)