In $SUBJECT it is called GHashTable, not GHashMap On Sat, Sep 03, 2022 at 05:03:27PM +0200, Linus Heckemann wrote: > The previous implementation would iterate over the fid table for > lookup operations, resulting in an operation with O(n) complexity on > the number of open files and poor cache locality -- for nearly every > open, stat, read, write, etc operation. > > This change uses a hashtable for this instead, significantly improving > the performance of the 9p filesystem. The runtime of NixOS's simple > installer test, which copies ~122k files totalling ~1.8GiB from 9p, > decreased by a factor of about 10. > > Signed-off-by: Linus Heckemann <g...@sphalerite.org> > --- > hw/9pfs/9p.c | 130 +++++++++++++++++++++++++++------------------------ > hw/9pfs/9p.h | 2 +- > 2 files changed, 69 insertions(+), 63 deletions(-)
With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|