jakartaee / faces

Jakarta Faces
Other
99 stars 55 forks source link

Specify that fast iteration (with indices) is possible #1003

Open eclipse-faces-bot opened 13 years ago

eclipse-faces-bot commented 13 years ago

Performance related problem:

Both Mojarra and MyFaces use iterator() for iteration over children. That is very slow if view is big and contains thousands of components.

Specify: 1) Specify : UIComponent.getChildren() is type of java.util.RandomAccess 2) Specify new UIComponent.getFacets(): List (java.util.RandomAccess) for fast iteration over facets

1) is very easy because mojarra and myfaces use ArrayList for children (so does trinidad)

I think this is not implementation detail, because custom renderkits must know that fast iteration is possible

See: https://issues.apache.org/jira/browse/MYFACES-3130 http://www.mail-archive.com/dev@myfaces.apache.org/msg52979.html

eclipse-faces-bot commented 5 years ago
eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented Reported by markoc

eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented jakobkorherr said: As I followed the discussion on MYFACES-3130, I have to say that this is a valueable "change" (actually it is not really a change, just a hint).

So +1 on including this info in the spec from my side!

eclipse-faces-bot commented 10 years ago

@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

eclipse-faces-bot commented 10 years ago

@glassfishrobot Commented @manfredriem said: Setting priority to Minor

eclipse-faces-bot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1003