![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
It is ridiculous to ever use writev or readv as it leads to chaos. |
|
The simple rule to follow is always dimension all items as an array and always equate every element of the array to a standard variable then always refer to all variables by name. Simple bug free and obvious. |
#22
| |||
| |||
|
|
*I prefer to let the EQUs just be numeric, and then always use dynamic arrays: * ** in an INCLUDEd file definition item: * *EQU TRNS.SUBGROUP.ID TO 10 * ** In code using the file * *THIS.SUBGROUP = TRNS.REC< TRNS.SUBGROUP.ID While theoretically slower, in my work I've never seen it make a measurable difference. |
#23
| |||
| |||
|
|
It is ridiculous to ever use writev or readv as it leads to chaos. |
|
The simple rule to follow is always dimension all items as an array and always equate every element of the array to a standard variable then always refer to all variables by name. Simple bug free and obvious. |
#24
| |||
| |||
|
#25
| |||
| |||
|
|
Um, did anyone here understand any of that? Don't worry about asking which part I didn't understand. I didn't understand anything past "Hi" or before the sig. |
#26
| |||
| |||
|
|
It is ridiculous to ever use writev or readv as it leads to chaos. |
|
The simple rule to follow is always dimension all items as an array and always equate every element of the array to a standard variable then always refer to all variables by name. |
#27
| |||
| |||
|
|
The issue of two reads at the same time is of course what object oriented programming solves simply. |
|
Aside to Tony - The OP to which I am responding appears to be attributed to you but I suspect that is false. The wordy but informative and accurate original, original is surely yours but the succinct question about understanding it is surely not yours. And perhaps should be signed with a smiley ![]() BobJ "Tony Gravagno" wrote Um, did anyone here understand any of that? Don't worry about asking which part I didn't understand. I didn't understand anything past "Hi" or before the sig. |
#28
| |||
| |||
|
|
It is ridiculous to ever use writev or readv as it leads to chaos. Agreed. The simple rule to follow is always dimension all items as an array and always equate every element of the array to a standard variable then always refer to all variables by name. With all due respect, the assumption that dimensioned arrays are more efficient than dynamic arrays is unfortunately not a universal truth. |
#29
| |||
| |||
|
|
Um, did anyone here understand any of that? Don't worry about asking which part I didn't understand. I didn't understand anything past "Hi" or before the sig. |
#30
| |||
| |||
|
|
MEMO.TEST 3001 records processed in 00:16 = 179 per second. MEMO.TEST2 3001 records processed in 00:35 = 85.0 per second. MEMO.TEST 3001 records processed in 00:16 = 179 per second. MEMO.TEST2 3001 records processed in 00:35 = 85.7 per second. |
![]() |
| Thread Tools | |
| Display Modes | |
| |