Skip to content

RFC use gnuhash to speed up device/driver match

Jean-Christophe PLAGNIOL-VILLARD barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2driver: remove the const of struct platform_device_id *id_tabledrivers/base/bus.c include/driver.h+3 -30 replies
2/2driver: generate hash at runtime to speed up device/driver matchingdrivers/base/bus.c drivers/base/driver.c include/driver.h+39 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] use gnuhash to speed up device/driver match

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

The following changes since commit d92ed454107b4d6f0d30fa0271da191ae5911d18:

Merge branch 'for-next/video' into next (2017-02-27 08:51:08 +0100)

are available in the git repository at:

git://git.jcrosoft.org/barebox.git delivery/gnuhash

for you to fetch changes up to 5ede85afc958bdf488a3c5e56061e7f27c26cbc6:

driver: generate hash at runtime to speed up device/driver matching (2017-03-01 03:49:34 +0800)

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
driver: remove the const of struct platform_device_id *id_table
driver: generate hash at runtime to speed up device/driver matching

 drivers/base/bus.c    | 16 ++++++++++------
 drivers/base/driver.c | 27 ++++++++++++++++++++++++++-
 include/driver.h      |  7 ++++++-
 3 files changed, 42 insertions(+), 8 deletions(-)

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox