From: Tom Rini Date: Thu, 13 Aug 2015 09:17:51 -0400 Subject: [U-Boot] [U-Boot, v2, 8/8] JFFS2: Use merge sort when parsing filesystem In-Reply-To: <1435725509-12300-9-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435725509-12300-9-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <20150813131751.GP25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 01, 2015 at 04:38:29PM +1200, Mark Tomlinson wrote: > When building the file system the existing code does an insertion into > a linked list. It attempts to speed this up by keeping a pointer to > where the last entry was inserted but it's still slow. > > Now the nodes are just inserted into the list without searching > through for the correct place. This unsorted list is then sorted once > using mergesort after all the entries have been added to the list. > This speeds up the scanning of the flash file system considerably. > > Signed-off-by: Mark Tomlinson Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: