Skip to content

Can the context-menus for the field editor be reused? #3335

@halirutan

Description

@halirutan

A great deal of work was done lately on the entry editor. One last thing that waves a red flag there are (surprise, surprise) the context menus. Believe it or not, those tooltips are waste more memory than you would think considering those are simple text things.

Let me make it clear: One run with opened editor through the 200 entry example bibfile. This does now only use 30MB of memory on its way. The "required tab" is of course always visible and therefore, the contents of this tab needs to be initialized and filled with data. Now hold your breath: 22MB of those 30MB are the context menus for the text fields.

screen shot 2017-10-23 at 11 50 28

I have seen that for each of those text fields, every tooltip and every context menu is a new instance. The question is, is it possible to make this more static. Tooltips can surely be initialized once and reused. But maybe it is possible to do this to a certain extent for the whole context menu like the CaseChangeMenu? Tooltips alone would account for 12MB and basically, only the 4 classes under package org.jabref.gui.fieldeditors.contextmenu need to be changed.

Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions