On Fri, 22 Aug 2014 09:07:14 -0400, John Cowan <[email protected]> said:
> Sascha Ziemann scripsit: >> Maybe we could come back to the original >> question how to avoid unnecessary >> initializations during the the creation >> of a new vector by parts of other >> vectors. The standard requires to use >> make-vector and vector-copy which >> initializes the new vector twice. > I've added a vector-append-subvector > procedure to VectorsCowan, my proposal > for a general vector library for > R7RS-large. Is it thinkable here to advise the user simply to call `vector-append' and rely on an optimizing compiler to avoid unnecessary copying of the subvectors that are apparently constructed afresh just to be thrown away almost immediately? ---Vassil. -- Vassil Nikolov | Васил Николов | <[email protected]> "Be careful how you fix what you don't understand." (Brooks 2010, 185) _______________________________________________ Scheme-reports mailing list [email protected] http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports
