| Summary: | [Performances - Properties View] Opening a Reference browser is slow on big models | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Camille Letavernier <cletavernier> |
| Component: | Views | Assignee: | Camille Letavernier <cletavernier> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | rschnekenburger |
| Version: | 1.1.0 | ||
| Target Milestone: | SR2 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/63620 https://git.eclipse.org/r/63623 https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=fc06e2bba73aa5f351575fc33e5d1d9c30fda6ba https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=53bd3941853109af4fc17d1320c60a3e3bfb12a0 |
||
| Whiteboard: | |||
| Bug Depends on: | 485329, 485539 | ||
| Bug Blocks: | |||
|
Description
Camille Letavernier
Since we always use the same Element Type / Request type (With different values), it should be possible to add a caching mechanism to the validator to avoid recomputing the advices for each value. A similar solution has been implemented for the New Child menu > A similar solution has been implemented for the New Child menu See Bug 463564 and especially commit cf974dd3 New Gerrit change created: https://git.eclipse.org/r/63620 > New Gerrit change created: https://git.eclipse.org/r/63620
I will change this contribution slightly for Mars SR2, to limit the risk of side-effects (Especially, I won't modify the current RequestCacheEntries on Mars; I will move the code to the EditServiceValidator to have a more localized impact)
New Gerrit change created: https://git.eclipse.org/r/63623 > New Gerrit change created: https://git.eclipse.org/r/63623 Same as before but for Mars, slightly adjusted as mentioned in Comment 4 (I didn't change the current implementation in the Edit Service; only in the EditServiceValidator used by the UML ContentProvider) The fix greatly improves performances: opening the dialog now takes ~200ms instead of ~4s in a medium-sized model Opening the dialog for the first time may still be a little bit slower because some referenced libraries may be loaded (But this will happen only once in the editor) The Gerrit builds are currently failing for unrelated reasons (Issues in the build configuration). I've restarted them Gerrit change https://git.eclipse.org/r/63620 was merged to [master]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=fc06e2bba73aa5f351575fc33e5d1d9c30fda6ba Gerrit change https://git.eclipse.org/r/63623 was merged to [streams/1.1-maintenance]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=53bd3941853109af4fc17d1320c60a3e3bfb12a0 Fixed on Mars & Master |