|
From: Daniel J S. <dan...@ie...> - 2006-02-22 19:05:42
|
Hans-Bernhard Br=F6ker wrote: > Factor of 2 of waste is not really excessive. Shouldn't be too bad. Factor of 2 at worst. As far as having reassign m= emory, with images having the array size, one would know right away the e= ventual number of points. With binary data, one could make a reasonable = guess based on file size. With ascii data, not worth the trouble as the = reading of ascii data is just as consuming as reassigning memory. > But if you don't like it,=20 > it can always be replaced by something like >=20 > new_size =3D (1.5 * old_size + 1000) >=20 > Call me biased, but I suspect this code had better use the existing=20 > dynarray.h stuff instead. I broke that code out of hidden3d for a=20 > reason, see? Wasn't aware of it. Dan |