[petsc-dev] use of hash table vs array in various places in PETSc

Jed Brown jedbrown at mcs.anl.gov
Mon Sep 19 00:38:29 CDT 2011


On Mon, Sep 19, 2011 at 03:55, Barry Smith <bsmith at mcs.anl.gov> wrote:

> The problem is that this assumes that it can be a compile-time decision
> whether to use the hash table or not. This is not always true  so I propose
> the following change: we make the decision hash table or array at run time
> (in PetscTableCreate()) and store the hash table/array in the same data
> structure and have PetscTableFind() and PetscTableAdd() be in-line functions
> sort of like
>

Did Jungho's subsequent runs confirm that this 50% business is really hash
table overhead? Is this a "good" hash table implementation in the sense of
being competitive with others for the sort of use cases we care about? Can
we check if there are a lot of hash collisions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110919/99d8acf9/attachment.html>


More information about the petsc-dev mailing list