rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #00529
Re: Patch to optimize WLSB memory allocation (Was: Support of RFC4996 RoHC-TCP)
Hello,
> Attached is a new patch to optimize wlsb.c in the current branch.
>
> I suppress the field "is_used" in the c_window structure, and add
> the fields "count" and "window_mask" in the c_wlsb structure to
> optimize the code.
>
> Pointers "next" and "oldest" are calculated using the size of the
> window, minus 1, as mask. No need of modulo.
>
> I think the code is faster, and more compact.
I committed your patch in trunk with small style changes [1]. Thank you!
Regards,
Didier
[1] http://bazaar.launchpad.net/~didier-barvaux/rohc/main/revision/394
Attachment:
signature.asc
Description: PGP signature
Follow ups
References