From 8bcf856a67528907e34377d05e26d0591211280b Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sun, 11 Mar 2007 15:35:18 +0000 Subject: [PATCH] Preload folder outlines before memoizing folder order. This improves the performance of sorting IMAIL folders dramatically. --- v7/src/imail/imail-core.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 80020887f..c970b5a1e 100644 --- a/v7/src/imail/imail-core.scm +++ b/v7/src/imail/imail-core.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: imail-core.scm,v 1.160 2007/03/11 15:04:31 riastradh Exp $ +$Id: imail-core.scm,v 1.161 2007/03/11 15:35:18 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -780,6 +780,7 @@ USA. (loop))))))) (define (build-folder-order-tree order folder) + (preload-folder-outlines folder) ((imail-ui:message-wrapper "Sorting folder") (lambda () (let ((length (folder-length folder)) -- 2.25.1