2. Basic JEVEUX items#

1 - Do not use the*” DOCU “** attribute from OJB.

2 - Try not to use “LONUTI”: we will generally try to allocate objects « as accurately as possible ». In this case,*” LONUTI “=” LONMAX “**.

Use the attribute “ LONUTI “ wisely: it is up to the user to update it; it should not be given any meaning other than his own: the actually used length of a vector.

  • 3 - For collections that we know will never be very big, it is best to create them contiguous. If not, they must be created scattered. We say that a collection (or an object) is big if:

  • its volume may be greater than 1 Mega word,

  • or if its volume can be greater than 10 times the number of ddls in the model.

  • 4 - Do not use pointers (name or length) shared between several collections. If (for example) 2 collections must be accessed by the same names, we can do:

  • create a name pointer,

  • create collections with « numbered » access

  • do CALLJENONU before accessing the collections.

  • 5 - Do not store memory addresses other OJB in OJB (because a memory address is by definition « temporary »). This is done for the mater_code type of Data Structures and for well-identified performance reasons, but it must remain exceptional.