[ 12 posts ] Go to page Previous1, 2

Satyen Desai

YUI Developer

  • Username: sdesai
  • Joined: Tue Dec 09, 2008 4:17 pm
  • Posts: 302
  • GitHub: sdesai
  • Gists: sdesai
  • YUI Developer
  • Offline
  • Profile

Re: Help me understand YUI3 Widget Performance

Post Posted: Thu Jul 12, 2012 3:31 pm
+0-
Satyam wrote:
The truth is that Widget is a little too heavy because it was too ambitious.


I'm not sure I agree (or maybe I don't understand the context). You mean in reference to your follow up point about getter/setter support being rolled into ES5? I don't think that warrants the "too heavy because it was too ambitious" classification.

Widget's goal is to define a pattern which separates State from UI, and binds them through state change events, because this was considered to be useful for designing easily customizable/maintainable/extendable widgets (based on the YUI 2 experience, and evolution of YUI 2 Widgets). Is it this goal which you find "too ambitious"?

If we're just talking about how the implementation could be optimized, that's a different story. For example, now that most browsers have caught up with getter/setters as a potential way to centralize all the code around the setting/getting particular piece of object state, we may want to look at how attribute could delegate to the native impl where possible.

Satyam wrote:
One performance enhancement you might be interested in is the string renderer:http://stage.yuilibrary.com/yui/docs/api/classes/WidgetHTMLRenderer.html


I'm not sure how that crept onto stage, but it's not supposed to be there. Sorry about the confusion.

I imagine it got left in, by "forgot to search/replace" mistake, with the TreeView documentation push.

Since we haven't gotten enough feedback/coverage on the WidgetHTMLRenderer approach it's not broken out as in independent module as part of 3.6.0 GA. The intention was to push it out as treeview-htmlrenderer along with TreeView as the first use case (as mentioned in the tickets/design docs : http://yuilibrary.com/projects/yui3/ticket/2531369, https://gist.github.com/1386836).

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Help me understand YUI3 Widget Performance

Post Posted: Thu Jul 12, 2012 10:55 pm
+0-
You are right, sorry, the 'too ambitious' was wrong. Widget is meant to do many things, and it does them well. It is not too ambitious but it still has to do lots of things.
  [ 12 posts ] Go to page Previous1, 2
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum