- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Let's assume that I have an array with 6 elements in it and I want to write it to a direct access fixed record length file. The array size in bytes is equal to the record length.
Could you possiblyrate the following pseudo-codes from most efficient to least efficient:
1. write()array ! Writes the whole array.
2. write()array(1:6)
3. write()(array(i), i=1,6)
4. write()array(1),array(2),...,array(6)
5. write()array(1:3),array(4:6)
Thank you for your input.
Let's assume that I have an array with 6 elements in it and I want to write it to a direct access fixed record length file. The array size in bytes is equal to the record length.
Could you possiblyrate the following pseudo-codes from most efficient to least efficient:
1. write()array ! Writes the whole array.
2. write()array(1:6)
3. write()(array(i), i=1,6)
4. write()array(1),array(2),...,array(6)
5. write()array(1:3),array(4:6)
Thank you for your input.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. write()array ! Writes the whole array.
2. write()array(1:6)
3. write()array(1:3),array(4:6)
4. write()array(1),array(2),...,array(6)
5. write()(array(i), i=1,6)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. write()array ! Writes the whole array.
2. write()array(1:6)
3. write()array(1:3),array(4:6)
4. write()array(1),array(2),...,array(6)
5. write()(array(i), i=1,6)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page