Re: Sequence slicing

new topic     » goto parent     » topic index » view thread      » older message » newer message

> while 1 do
> a&=data
> send(a[1..1500 to 5000 or more])
> a=a[1..length(a)-acknowleged()]
> end while

are you sure that calling acknowledged() isn't the bottle neck of your code?
try asigning it to a variable first, then profile it:

atom ack

while 1 do
    a &= data
    send( a[1..some_length] )
    ack = acknowledged()        -- does this take forever,
    a = a[1..length(a)-ack]        -- or this?
end while

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu