Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 224270 - investigate a new encoding for optionality
Summary: investigate a new encoding for optionality
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 226906 (view as bug list)
Depends on:
Blocks: 224244 225101
  Show dependency tree
 
Reported: 2008-03-26 22:07 EDT by Pascal Rapicault CLA
Modified: 2008-04-14 10:56 EDT (History)
2 users (show)

See Also:


Attachments
stringbuffer patch (4.63 KB, patch)
2008-04-02 14:52 EDT, Simon Kaegi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2008-03-26 22:07:16 EDT
The current implementation of optionality consists in creating all the combinations possible for the IU that has the optional requirements. This works well when there is only a few optional requirements, however it is no so well anymore when one IU has 600 optional requirements, since the number of combinations grows exponentially.

Therefore we need to find another way to encode optionality.
Comment 1 Simon Kaegi CLA 2008-04-02 14:52:45 EDT
Created attachment 94600 [details]
stringbuffer patch

Here's a patch on the branch that uses StringBuffers in a few places that profiling identified.
Comment 2 Pascal Rapicault CLA 2008-04-06 22:35:46 EDT
new_optionality_branch merged back in HEAD and string buffer changes applied too.
Comment 3 Pascal Rapicault CLA 2008-04-14 10:56:19 EDT
*** Bug 226906 has been marked as a duplicate of this bug. ***