Re: [RFC PATCH 0/2] use gnuhash to speed up device/driver match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 04, 2017 at 08:12:41AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Hi,
> 
> 	The following patch series use the gnu hash to speedup device/driver
> 	matching.
> 
> 	String compare is slow so we will calculate at runtime a hash that we
> 	can compare quickly to speed up the match
> 
> 	in a second step we could speed up this more by calculating the hash
> 	at compile time

On a i.MX53 quickstart board this patch reduces startup time from 115.9ms
to 115.4ms. On a i.MX35 board the startup time is reduced by 72us. I
don't think this is a valuable gain. Do you have any situation where you
really spend significant time in strcmp?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux