network: Optimise _subnet function
This function used to create a network list which always
had exactly two elements. Since splitting a network in half
always returns two parts, we can simply return them as a
pointer.
This improves returning the network tree by about 17%.
Signed-off-by:
Michael Tremer <michael.tremer@ipfire.org>
Showing
Please register or sign in to comment