Re: Sequence slicing

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

Heres a snipet, thats all one line by the way, and it takes forever

sockets[sock][SOCKET_DATA][tDEST][tDATA]=sockets[sock][SOCKET_DATA][tDEST][t
DATA][diff+1..length(sockets[sock][SOCKET_DATA][tDEST][tDATA])]



----- Original Message ----- 
From: "Greg Haberek" <g.haberek at comcast.net>
To: <EUforum at topica.com>
Sent: Tuesday, October 21, 2003 7:57 PM
Subject: Re: Sequence slicing


>
>
> > 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
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu