Should dynamic arrays be used in a DOORS database?

I am a new developer for the DOORS database and when writing scripts in dxl. If you know that in dxl there are only one-dimensional arrays. I wanted to use more than one dimension, so I decided to use a dynamic array, but this significantly reduced my script, and when we have about 14,000 objects per module, it will take about one day for the script to run.

I was wondering if it is wise to use dynamic arrays in these scenarios, or if someone has experience with dynamic arrays in databases?

Just a curious thanks!

+7
arrays database dxl
Jun 06 '09 at 17:21
source share
1 answer

Dynamic arrays are significantly slower than C type arrays in DOORS, so you should avoid them if you know the size of the array in advance.

If you know the number of elements, but you need more measurements, you can do this as follows:

//Define an array of (for example) bool int imax=5 int jmax=7 bool myarray[imax*jmax] //Access for example element myarray[3][2] int i=3 int j=2 bool mybool=myarray[i*jmax+j] 
+9
Jun 07 '09 at 0:24
source share



All Articles