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

Cache position at startup #3395

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

awildturtok
Copy link
Collaborator

No description provided.

@awildturtok awildturtok marked this pull request as ready for review April 15, 2024 14:07
Comment on lines +82 to +84
public void init() {
position = ArrayUtils.indexOf(getTable().getColumns(), this);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ich denke, dass es hier sauberer ist, wenn wir den Setter setTable() überschreiben. Den sollte Jackson dann auch nutzen können.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oha nice! Gute idee!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hab es gerade ausprobiert, das geht nicht, weil columns erst initialisiert wird nach der column construction :<

Copy link
Collaborator

Choose a reason for hiding this comment

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

War die lazy init denn der Grund für die vielen Lambdas im histo, oder wie kommt es zu dem PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nein, aber wir haben beide schon unabhängig in flamegraphs von calculateCblocks sehr viel getColumn calls gesehen, die ja eigentlich komplett überflüssig sind wenn die methode ordentlich inlined wird (was sie anscheinend nicht wird). Weil sie ja komplett statisch sein kann wie hier

Copy link
Collaborator

Choose a reason for hiding this comment

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

oki

@awildturtok awildturtok merged commit f99d588 into develop Apr 16, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/properly-cache-position branch April 16, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants