Skip to content

Conversation

christian-schilling
Copy link
Member

History queries where very slow because find_original(...)
is executed on every commit.
The idea of this optimisation is reduce the amount of history
to traverse with each commit visited, taking advantage of the
topological order of the traversal.

Change-Id: history-query-optimisation

History queries where very slow because `find_original(...)`
is executed on every commit.
The idea of this optimisation is reduce the amount of history
to traverse with each commit visited, taking advantage of the
topological order of the traversal.

Change-Id: history-query-optimisation
};

{
rs_tracing::trace_scoped!("walk");
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe this scope can have a different name, like find_original

}

fn hash(&self, context: &Context) -> FieldResult<String> {
rs_tracing::trace_scoped!("hash");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you mean to keep those here?

@LMG LMG merged commit 875692a into master Aug 24, 2022
@LMG LMG deleted the @changes/master/christian.schilling.de@gmail.com/history-query-optimisation branch August 24, 2022 10:12
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.

3 participants