[Telepathy] [Bug 16170] TpIntSet should cope with larger integers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 2 09:46:23 PST 2008


http://bugs.freedesktop.org/show_bug.cgi?id=16170





--- Comment #1 from Rob Taylor <rob.taylor at codethink.co.uk>  2008-12-02 09:46:23 PST ---
Another option is to divide up the malloced bitfield into 4k chunks, only zero
chunks in which a bit has been set. Maintain a bitfield for which chunks are
currently in use (that would be max 16k). Align the bitfield to a page boundary
when (re)allocing if it grows larger than a page for extra points.

The kernel should then nicely take care of paging for you, I think. The actual
operations should also be able to stay very light.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Telepathy mailing list