On Tue, Oct 23, 2007 at 05:11:16PM -0500, Matt Mackall wrote:I looked at slab and slub, and would grow the buffer by no less than 1.5x each time, thanks to the buckets. I'd initially implemented 2x, but switched to allocating size+1 and calling ksize() as being a more efficient implementation. I presume slob is different? Actually, slob doesn't seem to provide krealloc, so I think stringbuf won't work on slob. Will you have time to fix this? Hrm. extern void sb_printf(struct stringbuf *sb, gfp_t gfp, const char *fmt, ...) __attribute__((format(printf, 3, 4))); ? Any objections? I don't care. Sure! -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Badalian Vyacheslav | e1000: Question about polling |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
