#1 2014-03-28 08:53:16

docme
Member
Registered: 2014-03-07
Posts: 9

CSV faster code

Existing AddCSV code:

  for i := 0 to high(Integers) do begin
    Add(Integers[i]);
    Add(',');
  end;
  CancelLastComma;

faster code?:

  Add(Integers[0]);
  for i := 1 to high(Integers) do begin
    Add(',');
    Add(Integers[i]);
  end;

// for works same as a while loop.

Offline

#2 2014-03-28 09:33:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,550
Website

Re: CSV faster code

No noticeable difference.

Offline

Board footer

Powered by FluxBB