rohc team mailing list archive
Mailing list archive
Re: Patch to optimize WLSB memory allocation (Was: Support of RFC4996 RoHC-TCP)
> > 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 . Thank
Automated tests with Valgrind detected  a bug in c_ack_sn_wlsb(). I
fixed it in the trunk .
Description: PGP signature