Commit 1bbf460f authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

don't re-sort stale dimensions on cleanup as we don't know if we're going to...

don't re-sort stale dimensions on cleanup as we don't know if we're going to need these at all. they will get resorted if and when needed.
parent f8776762
......@@ -350,8 +350,7 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
/* Clean-up the flags, i.e. filter out what's already been sorted unless
we're cleaning up. */
if (cleanup && c->dx_max_sort > 0.0f) {
/* Re-compute old (stale) sorts. */
flags |= c->sorted;
/* Clear stale sorts. */
c->sorted = 0;
} else {
/* Ignore dimensions that are already sorted. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment