Page MenuHomeFreeBSD

reduce computation in meta-function loops
AbandonedPublic

Authored by dougm on Aug 13 2017, 5:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 25 2023, 9:38 AM
Unknown Object (File)
Dec 20 2023, 1:28 AM
Unknown Object (File)
Dec 13 2023, 3:56 AM
Subscribers
None

Details

Reviewers
None
Summary

In blist_meta_alloc, replace the (cursor>blk) comparison in the
lop with a (cursor=blk) assignment.

In blst_meta_free, replace the two loop-bound comparisons and one
inner-loop comparison with one comparison, by computing an upper
loop bound before looping begins.

Make similar changes to blst_copy and blist_fill.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped