Re: [Scheme-reports] vector-insert John Cowan (22 Aug 2014 13:11 UTC)
Re: [Scheme-reports] vector-insert Vassil Nikolov (22 Aug 2014 18:04 UTC)
Re: [Scheme-reports] vector-insert John Cowan (22 Aug 2014 18:42 UTC)
Re: [Scheme-reports] vector-insert Vassil Nikolov (22 Aug 2014 20:57 UTC)

Re: [Scheme-reports] vector-insert Vassil Nikolov 22 Aug 2014 18:01 UTC

On Fri, 22 Aug 2014 09:07:14 -0400, John Cowan <cowan@mercury.ccil.org> 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 | Васил Николов | <vnikolov@pobox.com>

"Be careful how you fix what you don't understand."  (Brooks 2010, 185)

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports