🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #544

Re: Speed of Delete - improvement

#544
From: Dr John Stockton
Date: Thu, 20 Nov 1997 00:00
27 lines
1917 bytes
In article <3475d1e1.10629295@forums.borland.com> of Tue, 18 Nov 1997
17:37:01 in borland.public.turbopascal, "J. W. Rider (TeamB)"
<jw_rider@usa.net> wrote:
>On Mon, 17 Nov 1997 17:55:21 +0000, Dr John Stockton
><jrs@merlyn.demon.co.uk> wrote:
>
>>It seems to me that Delete is sometimes implemented as Copy(Start),
>>Copy(Tail), Concat(Start, Tail); and that there should be a better way
>>just involving Move(Tail).
>
>I'm kind of surprised that the BP7 Delete would have been implemented
>like that.  A quick check in Delphi shows that Delphi does it the
>faster way.


ISTM that it was.  I am vexed that I did not think that Insert is the
opposite of Delete; but ISTM that the situation is similar in BP7.

Doubtless one can replace Insert (Copy Concat Copy Concat) with Inject
(Move Move) likewise.
 
-- 
John Stockton, Surrey, UK.    jrs@merlyn.demon.co.uk    Turnpike v1.12    MIME.
  Web URL: http://www.merlyn.demon.co.uk/ - FAQqish topics, acronyms and links.
  Correct 4-line sig separator is as above, a line comprising "-- " (SoRFC1036)
  Before a reply, quote with ">" / "> ", known to good news readers (SoRFC1036)
Technical Details
Message-ID: <8HtnSFAYt4c0EwuU@merlyn.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <s2qpaAAJUIc0EwPB@merlyn.demon.co.uk> <3475d1e1.10629295@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,9e270db731f7d69c
X-Google-Attributes: gid10261c,public
X-Google-Thread: 111659,9e270db731f7d69c
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,9e270db731f7d69c
X-Google-Attributes: gid108ebd,public
From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Subject: Re: Speed of Delete - improvement
Date: 1997/11/20
Message-ID: <8HtnSFAYt4c0EwuU@merlyn.demon.co.uk>
X-Deja-AN: 290925784
References: <s2qpaAAJUIc0EwPB@merlyn.demon.co.uk> <3475d1e1.10629295@forums.borland.com>
Distribution: world
X-NNTP-Posting-Host: merlyn.demon.co.uk [158.152.233.145]
Organization: Home, Surrey, UK
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal