bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 4/4] mach-defpager: replace the magic typecast with a hash ta


From: Samuel Thibault
Subject: Re: [PATCH 4/4] mach-defpager: replace the magic typecast with a hash table
Date: Tue, 25 Mar 2014 23:13:51 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Wed 19 Mar 2014 11:31:11 +0100, a écrit :
> Previously, the mach-defpager used a "magic typecast" for object
> lookups.  It renamed the port to the address of the associated object,
> and upon receiving a message it would cast the port name back to a
> pointer.
> 
> While this might seem like an optimization, it actually makes the port
> handling in the kernel less efficient.  Ports with small continuous
> names are stored in an array, while other ports get spilled in a splay
> tree.
> 
> Replace the linked list of default_port_t objects with a hash table.
> Do not rename the ports, rather use the hash table to lookup objects
> associated with ports.

Ack.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]