7 Aug 2013 9:13 AM #31
Quite an argument developing here...
I think the saner comparison in comparing Ext 3 or Ext 4 is comparing C to C++, not OSes or games.
C is faster at practically everything, and more efficient on old hardware since it's so much simpler for the compilers to generate optimised code, but C++ brings so much more to the table, including, most relevantly here, object oriented support.
I believe that is why Ext 4 is slower; it properly supports a class system, with dynamic loading, aliasing, inheritance etc.
I suppose should also add that it's layout system is far more advanced, but that brings performance penalties...
I don't know about you, but I find the code in Ext 4, and an application written in it a LOT easier to design, structure, read, understand and maintain. That for me is worth a bit of slowdown. That is worth a lot of slowdown really, when you consider just how painful maintenance and understanding other peoples code can be at times.
I agree that performance is still often far too slow though, and there is much to improve, but the class system that Ext 4 brought is a massive plus, and I'd have to disagree strongly with anyone who thinks the old way of writing Ext applications is better, because that view is absurd in my opinion.
7 Aug 2013 9:24 AM #32
To address your bolded part:
The class system has been revamped and 4 and has many more features but that is not why it is slow. It is the layout system that is dragging things down. Ext 4 allows you to write cleaner and more maintainable code with mixins and other class features but the bugs it has on every release is a maintenance nightmare, at least for us. I guess it depends on the size of the codebase. My team of 4 has literally run into 100's of bugs and incomplete features. On my personal project where I used 4.0.2a I only had 1 bug and it has been fixed since. It all depends on how many features are being used.
7 Aug 2013 9:29 AM #33
7 Aug 2013 9:40 AM #34
Years ago Sencha committed to making ExtJS v4 at least as fast as v3 and apparently has decided to forget about that commitment. For those who've been around long enough, don't forget that v3 was *much* slower than v2. V3 performance was acknowledged to be an issue (by Sencha) and we were first told that v4 was faster, then when that was shown to be completely wrong, were promised it would be fixed... We're still waiting.
7 Aug 2013 9:44 AM #35
I'm weary of this now, so I'll stop here. You guys feel free to go on demanding that Ext JS 5 run as fast as Ext JS 4 on outdated hardware and we'll see how that works out for you.
7 Aug 2013 10:20 AM #36
7 Aug 2013 10:58 AM #37
Then, build a dependency injection system in Ext 3 that uses class preprocessors to automatically resolve the dependencies at class load and creation time using annotations. Oh wait...you can't, because there are no class preprocessors. Not everything that changed and added overhead was specific to the UI. A lot of it is in the framework core and the class system and was directed at developers rather than end users.
7 Aug 2013 11:12 AM #38
7 Aug 2013 11:25 AM #39
7 Aug 2013 11:46 AM #40