jdonaldson / promhx

A promise and functional reactive programming library for Haxe
MIT License
145 stars 24 forks source link

add flag -D useSetTimeout=true for use setTimeout instead of setImmediate #69

Closed francescoagati closed 9 years ago

jdonaldson commented 9 years ago

were you able to override the default event loop with setTimeout manually? Was chrome able to jit it efficiently?

francescoagati commented 9 years ago

Explorer is alow with setimmediate if there are mamy events to process

francescoagati commented 9 years ago

Slow

francescoagati commented 9 years ago

ok with manually update nextLoop it works good. Thanks.

This is the code for manual nextLoop

    promhx.base.EventLoop.nextLoop = function(f) {
      untyped setTimeout(f,0);
    };