KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 4 as of 2007-02-09 00:15:58
KernelNewbies:
  • FAQ
  • HashTables

What is it ? Mechanics and mechanisms

Usage Patterns

Usage sample

Internals

Data Structure

Major Operations

Reference Usages in the Linux Kernel

Experience – what worked and more importantly what didn’t work & gotchas

  • For tables less than 50 elements or so, binary search will give more performance than hash tables
  • Collision and how to handle collisions is an important factor in designing around hash tables
  • There are schemes that generate a perfect hash function, given a set of elements
  • While there is no clear size, from my experience, 16 bit hashes that give 65536 elements is a good start
  • You can have global and local hash tables ie smaller hash tables than a big hash tables that contains all the elements

Discussions & Notes

<KS 8 Feb, 07> I have started the template and am slowly filling in the details. Please contribute as you see fit. Cheers  </KS> 


  • ["CategoryFAQ"]
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01