Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
41–50 of 67 posts
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#42(disclaimer: I work for Adobe on a competing service (PhoneGap Build) and have worked with PhoneGap for years) This is a silly benchmark - there is absolutely no reason you would put 1000 calls at once, sequential or parallel, across this sort of bridge in a real app. You probably shouldn't be calling any JavaScript API in a client-side app 1000 times at once. The bridge in PhoneGap Android probably is slower than th…
Whoa a phonegap person! I hate to hijack, but are you guys seeing any of these apps rejected by Apple because they weren't made with native controls or any other reason? There's a project I'm going to begin working on and phonegap looks like a real time saver to me, but I don't want to have to deal with Apple telling me that my apps aren't "good enough" for them.
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#43Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#44Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#45Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#46Earlier quoted context omitted.
That's disingenuous: if every millisecond counted, then you'd be developing apps natively instead of using a web bridge. Clearly, there is a tradeoff to be made between usability&portability and speed. To be fair, I think the camera example is not a good one: at Zite we use web native api for lots of things that performance is really important for since they are frequent (logging, timing, anything called frequently)
Disagree it's disingenuous. I'm a web developer without any mobile experience. I accept there will be some performance impact from using a web bridge. However, I want to minimize this as far as possible - and all the studies show milliseconds really do count so far as usability goes. Agree the web native api performance is important for the use cases you mention.
Although performance is important, as someone who does PhoneGap apps for a living (http://mulberry.toura.com) I can tell you that there are so many other performance problems with HTML5 that this is wayyy premature optimization.
11ms isn't going to kill you, and if you are experiencing performance problems, there are far more important things to do (check for DOM leaks, dealing with 3G latency, etc.) than shave off a few ms on a call to a native function.
Or put another way, there's no reason to create another PhoneGap-like framework to save 11ms on a native function call. There are a whole lot of other reasons (many business-related) of course. But this isn't one of them. :)
Thanks,
--
Matt
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#47Earlier quoted context omitted.
Hey Andrew - a disclaimer of my own: I'm a co-founder of Trigger. Actually, we think this is a pretty important benchmark: battery drain and general responsiveness is a huge deal on mobile devices, so we take performance of the bridge very seriously. Every millisecond counts here. Also, I can absolutely see the need to send large number of messages - a streaming accelerometer API, for example, which is on our roadmap…
> Also, I can absolutely see the need to send large number of messages - a streaming accelerometer API, for example, which is on our roadmap. There is no benefit to sending ondevicemotion events out to the native code because you can always get higher frequency updates on the native code (60Hz vs 20Hz) and sending them in via stringViaEvaluatingJavascriptFromString is identical between Trigger.io and PhoneGap (and wi…
True enough that on iOS we would perform comparably, but for Android, it would mean "long"-polling a local web server at 60Hz!
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#48Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#49Earlier quoted context omitted.
Hey Andrew - a disclaimer of my own: I'm a co-founder of Trigger. Actually, we think this is a pretty important benchmark: battery drain and general responsiveness is a huge deal on mobile devices, so we take performance of the bridge very seriously. Every millisecond counts here. Also, I can absolutely see the need to send large number of messages - a streaming accelerometer API, for example, which is on our roadmap…
That's disingenuous: if every millisecond counted, then you'd be developing apps natively instead of using a web bridge. Clearly, there is a tradeoff to be made between usability&portability and speed. To be fair, I think the camera example is not a good one: at Zite we use web native api for lots of things that performance is really important for since they are frequent (logging, timing, anything called frequently)
Re: Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
#50How does this compare to other native bridging platforms like Appcelerator Titanium? I see no mention of it anywhere in the blog posts or on the comparison charts on your site, etc.
Anecdotally we think a performance comparison of the bridge would be favorable, but actually the main reason people use us over other frameworks is that our development process is designed for web devs.
So with us, you don't need to do local compiles or use a particular IDE, and we have a much faster build / test cycle.