[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/9] libports: reduce malloc overhead in _ports_bucket_class_
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 3/9] libports: reduce malloc overhead in _ports_bucket_class_iterate |
Date: |
Tue, 29 Apr 2014 02:02:13 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 28 Apr 2014 12:19:58 +0200, a écrit :
> ports_class_iterate. For this change might make ports_class_iterate
> less efficient memory-wise if the number of ports belonging to the
> class is low with respect to the number of ports in the bucket.
I'd say reallocing the array to the right size, right after filling it,
would be fine enough for keeping memory use efficient enough.
Samuel
- let's make libpager single-threaded, Justus Winter, 2014/04/28
- [PATCH 4/9] exec: abbreviate the task name if necessary, Justus Winter, 2014/04/28
- [PATCH 5/9] ext2fs: fix type of inum, Justus Winter, 2014/04/28
- [PATCH 7/9] ext2fs: use two distinct pager buckets for the disk and file pager, Justus Winter, 2014/04/28
- [PATCH 9/9] libpager: remove all the unused seqno parameters, Justus Winter, 2014/04/28
- [PATCH 6/9] ext2fs: simplify expression, Justus Winter, 2014/04/28