Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Reimplement MappedList.kt #3032

Merged
merged 3 commits into from
Jul 20, 2017
Merged

Replace Reimplement MappedList.kt #3032

merged 3 commits into from
Jul 20, 2017

Conversation

LinusDietz
Copy link
Member

Fixes #3014.

I have mainly used this gist as an idea https://gist.github.com/TomasMikula/8883719, the alternative would have been https://gist.github.com/mikehearn/a2e4a048a996fd900656

  • Manually tested changed features in running JabRef

@LinusDietz LinusDietz added build-system status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Jul 20, 2017
@Siedlerchr Siedlerchr merged commit bee715d into master Jul 20, 2017
@Siedlerchr Siedlerchr deleted the my-mappedlist branch July 20, 2017 13:53

@Override
public A get(int index) {
return mapper.apply(super.getSource().get(index));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation of the MappedList looks identical to the one in the EasyBind package but is different from MappedList.kt.
The mapped list from the corda package runs the mapper when the item is inserted/updated while this implementation here invokes the mapper on every get-call. Since the get method is called relatively often (e.g. if you scroll in the listview), the EasyBind implementation should only be used for quick mappers. Can you please revert the change and/or write a direct reimplementation of the corda mapped list since we otherwise run again in performance problems with huge groups trees.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will do!

Siedlerchr added a commit that referenced this pull request Jul 31, 2017
* upstream/master: (41 commits)
  update xmlunit from 2.3.0 -> 2.4.0
  update wiremock from 2.6.0 -> 2.7.0
  update controlsfx from 8.40.12 -> 8.40.13
  Fix group freeze by running markBasechange in swing thread (#3058)
  Localization: French: translation of new entries (#3050)
  Fix ads fetcher (#3048)
  Update translation (#3041)
  Translate new strings (#3040)
  Fix navigation in entry editor increases modifies font size (#3037)
  Initial idea for architectural decision records (#3033)
  Readd comment
  Readd comment
  Fix keybdining in entry editor in localized installation (#3030)
  Structuring
  Upgrade shadowJar
  Modernizer improvements
  Replace Reimplement MappedList.kt (#3032)
  Use https for the maven ej-technologies repo
  Upgrade modernizer plugin
  Remove separator next to search bar
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants