In some testing here, it seems that parsing strings is faster than parsing
arrays -- could that be?

The test case involved a table of contact info for the members of the US
congress (8 tab-delimited columns, with 540 return-delimited rows).

In order to display the info in eight one-column fields (I'd use one field
with the tabstops but the data length varies), I need to parse it into
columns.

In the absence of any one-line way to obtain either columns from tabbed text
or a single dimension of a multidimensional array, to use text I step
through each line, and then each item, making a list of items for each
column.  For the array, I step through the keys doing roughly the same
thing.

The odd thing is that it took 480 ms to parse and display the array, and
only 240 ms to parse and display the tabbed data.

Aside from handling large sets of object properties, unless I'm missing
something obvious I'll be using tabbed text for most database-style work.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _____________________________________________________________________
 [EMAIL PROTECTED]                 http://www.FourthWorld.com
 Tel: 323-225-3717           ICQ#60248349            Fax: 323-225-0716


Reply via email to