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.