This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Just to make sure we're on the same page; after
p = malloc(1000000000);
the following statement
p = realloc(p,1000000000+10000);
involves no copying of data; it's about as fast as p=malloc(10000);
Are you saying that a = [a,1] actually uses realloc internally?
Even with MOVE_ALLOC, if you try to do the same thing, you end up making one copy.
-- Janne Blomqvist
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |