Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329208

Summary: [context] Organize listeners by name
Product: z_Archived Reporter: Oleg Besedin <ob1.eclipse>
Component: E4Assignee: Project Inbox <e4.runtime-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Oleg Besedin CLA 2010-11-01 13:20:19 EDT
Created attachment 182159 [details]
Patch

Currently whenever a value is changed in a context, all its listeners are notified; then it is up to the listener to determine if they need to react to the change. 

This is a somewhat expensive. For instance, polling of context listeners takes up about 25% - 30% of the time to switch active editor. 

I'd like to change how we store listeners: place them in the bins corresponding to the name they depend on. (It will be possible to have the same listener in multiple bins.)
Comment 1 Oleg Besedin CLA 2010-11-01 13:21:39 EDT
Patch applied to CVS Head.