Refactoring: Lazy init of all editor tabs#3333
Conversation
|
Nice! I pulled your branch and I'm looking over it. One thing up front: As expected, the memory consumption went again down drastically and the same run through the 209 entry example was now possible even without the GC kicking in I see here only 240MB of RAM that was needed and the speed is awesome. |
This is just horrible. The sorting of the observable list Even more unfortunate is that the I thought maybe we can simply have all tabs in The best solution from the developer's point of view is |
|
I don't have push access, but here is the patch for manually changing the tabs list without removing everything and re-adding all tabs. In IDEA you can try it out by using VCS -> Apply Patch. |
|
Thanks @halirutan for the feedback and the patch. I took your ideas but implemented it somewhat different (the outcome should be the same). Everything seems to work now, so this PR is ready for review. |
Siedlerchr
left a comment
There was a problem hiding this comment.
Code wise looks good to me. Will test it outl ater
75b7a48 to
5b78e17
Compare
…ngerous that the build fails
|
@tobiasdiez ...if you join ...
Am 23.10.2017 15:47 schrieb "Tobias Diez" <notifications@github.com>:
@lenhard <https://github.com/lenhard> We already have a changelog entry for
the performance improvements, so I didn't added anything there in addition.
@koppor <https://github.com/koppor> I expect at least few beers from you
for everybody at the next JabCon for bearing the constant annoying
stylecheck complains 😺
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3333 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABTafovGcpIBAL_WTbi64VuVCGT7FJgYks5svJjGgaJpZM4QByqk>
.
|
|
@tobiasdiez Alright, I am fine with that. I have removed the [WIP] part in the title, since this is no longer work in progress, I guess. We're practically good to go here, right? @Siedlerchr wanted to do some more testing and then we can merge. |
|
Tried around, works amazingly fast! Did not find any issue so far, so I would merge it now! |
* upstream/master: (31 commits) Source tab entry duplication (#3360) Use CITE_COMMENT not only for external latex editors but also for cop… (#3351) Updating with new translations (#3348) Upgrade error-prone (#3350) Jabref_pt_BR partially updated (#3349) Used late initialization for context menus (#3340) Fix NPE when calling with bib file as cmd argument (#3343) update mockito-core from 2.10.0 -> 2.11.0 (#3338) Remove underscore in Localized messages (#3336) Localisation: French: new entries translated (#3337) Refactoring: Lazy init of all editor tabs (#3333) Initializing EntryEditor Tabs on focus (#3331) Fix #3292: annotations are now automatically refreshed (#3325) Change integrity message for names depending on database mode (#3330) Fix location bundle with fast access (#3327) Small code cleanup Fix "path not found" exception Small fix in drag and drop handler of linked files (#3328) Fix NPE in MainTable (#3318) Increase relative size of abstract field in editor (#3320) ...



Not to let @halirutan and @lenhard have all the fun, I'll jump onto the "improve-the-entry-editor"-train. So this PR is a natural continuation of #3331.
Changes:
gradle localizationUpdate?