]> Kevux Git Server - fll/commit
Update: Delete socket rather than resize when array is over large.
authorKevin Day <thekevinday@gmail.com>
Sat, 26 Feb 2022 22:21:04 +0000 (16:21 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 26 Feb 2022 22:21:04 +0000 (16:21 -0600)
commitf5a1a5a17915c79b03b828b80b4858d7d68513d5
treebce8af0dcf4cfe78f761c98c0a5863e8273608c6
parent9706a6d35e8453bf6d91b5a9c1955e4d27e3d5ce
Update: Delete socket rather than resize when array is over large.

I realized that this might be more performant.
If I have to resize the array because it is over large, then a resize could result in a copy of memory.
At this point in the program, the data is irrelevant.
I suspect deleting the array will perform better than resizing the array to a smaller size.
level_3/controller/c/control/private-control.c