I've been away from programing for a while due to personal matters. Getting back into it hopefully. But one question has always come up for me and I hope how I put it here is not confusing.
Suppose you have "records", each of which contain multiple types of "fields". There's a choice as to EITHER have separate arrays for each field (each array containing the given field for all the records) OR create an object class for the records which holds all the fields and make an array for those records (the object instances). I've always assumed that crunching through specific data will be faster if one uses the individual arrays for each field, while it is more convenient (programing wise) to use an object class. Speed for the user has usually won out for me, so I've usually chosen the separate array approach. Is my assumption about speed wrong? Now if one puts the methods for a given data crunching process as methods within the object (using the object method of course), will speed be regained (do to the smaller chain of references to reach the data in question), or will thing still go faster (given second paragraph assumption) using only arrays? _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>