Page MenuHomeFreeBSD

rb_tree: optimiize insert_color
AbandonedPublic

Authored by dougm on Jul 2 2022, 5:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 8, 9:45 PM
Unknown Object (File)
Dec 12 2024, 1:41 AM
Unknown Object (File)
Oct 17 2024, 3:33 AM
Unknown Object (File)
Oct 12 2024, 8:18 AM
Unknown Object (File)
Oct 7 2024, 8:41 PM
Unknown Object (File)
Sep 22 2024, 3:48 PM
Unknown Object (File)
Sep 22 2024, 5:05 AM
Unknown Object (File)
Sep 21 2024, 9:35 PM
Subscribers
None

Details

Reviewers
alc
Summary

Rearrange color changes in RB_INSERT_COLOR to flip two colors at a time, rather than one and then the other.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.Jul 2 2022, 5:59 PM
dougm created this revision.

Rewrite RB_SET_PARENT, as suggested. This reduce size by 32 bytes.

Made redundant by committing D35524.