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 John Cowan 22 Aug 2014 18:37 UTC

Vassil Nikolov scripsit:

>   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?

If you like, certainly.  But SRFI 43 (and R7RS-small, which incorporate
parts of it) have lots of "start end" argument pairs precisely to
avoid the need for such optimization.  The alternative would be shared
subvectors, but that would need to be a primitive capability.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
My corporate data's a mess!
It's all semi-structured, no less.
But I'll be carefree / Using XSLT
On an XML DBMS.

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