Issue 31175  —   componentToStruct performance problem

Status:   Solved in 10.2.01

Solution available in patch(es):      MG01

Description:

 Summary: The instruction componentToStruct requires more time to copy data from
 a component to a Struct than when the Struct is created manually.

 Environment:
  +Uniface: Version 9.5.01 (and higher)
  +Operating System: OS independent
  +Database: DBMS independent

 Symptoms:
 The instruction componentToStruct requires more time to copy data from a
 component to a Struct than when the Struct is created manually.

 Consider the following scenario:

 * Component FRM1 with the entity ENT1

 * ENT1 includes 8 fields:
   + ID   = C10
   + FLD1 = C80
   + FLD2 = C80
   + FLD3 = C10
   + FLD4 = B
   + FLD5 = C80
   + FLD6 = C80
   + FLD7 = C161

 > Time required to process 25000 records:

 - Using componentToStruct this takes about 30 seconds.
 - Manually copying the component data to struct takes
   about 2.5 seconds (including the creation of
   the u_type tags)

 The expectation is that the instruction componentToStruct
 should be equally fast (or even faster) than manually
 copying data from a component.

Workaround:

 There is no workaround for this problem.

Notes: