Re: Euphoria 2.4 Alpha-test Release!

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

The following code takes twice as long to run with 2.4  than 2.3

------------
include machine.e
tick_rate(1000) -- Improves precision of time()
sequence v v = {}
atom e
e =time()
for i = 1 to 10000000 do
    -- wait til I get a few elements before dropping them.
    if i > 1000 then
        -- Drop first element.
        v = v[2..length(v)]
    end if
    -- Append new element
    v &= 1
end for
? time()-e
atom m -- Cause a pause
------------

However, as the difference is only 2.5 seconds over 10 million iterations, I
can live with it.

cheers,
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu