Hi Jerry,
Am 14.09.2016 um 07:56 schrieb Jerry DeLisle:
Hi All,
The attached patch implements the necessary changes for DTIO to/from internal units.
Prior to this patch, internal unit character strings and related data were kept within the dtp structure with a pseudo unit number assigned. Since child I/O procedures need this information passed to them through the unit number, it is necessary to move this information into the gfc_unit structure.
This also implies that the internal unit needs a legitimate and unique unit number. This is accomplished using the existing newunit mechanisms to obtain a unit number and then allocating the unit structure on the existing treap mechanism used for all units. The child I/O procedures can then find the units for use.
How does this affect performance?
I mean, reading and writing to/from internal units is a common thing and is
certainly performance critical in some cases. It is already slow as is,
so it would be sad to slow down this mechanism even further.
Does acquiring a new unit and allocating the structure impair performance?
Or does your stack approach mitigate this completely?
Thanks,
Manfred