[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.
- Another round of receiver lookup fixes, Justus Winter, 2014/03/19
- [PATCH] include: make the memory_object_t types translation functions mutable, Justus Winter, 2014/03/19
- [PATCH 1/4] hurd: fix receiver type, honor DEFAULT_PAGER_IMPORTS, Justus Winter, 2014/03/19
- [PATCH 3/4] mach-defpager: fix local includes, Justus Winter, 2014/03/19
- [PATCH 2/4] mach-defpager: fix receiver lookups, Justus Winter, 2014/03/19
- [PATCH 4/4] mach-defpager: replace the magic typecast with a hash table, Justus Winter, 2014/03/19
- Re: [PATCH 4/4] mach-defpager: replace the magic typecast with a hash table,
Samuel Thibault <=
- Re: [PATCH 1/4] hurd: fix receiver type, honor DEFAULT_PAGER_IMPORTS, Samuel Thibault, 2014/03/24