- Calculate spans of redundant `//` & `/./` before calling `memmove`. - Loop backwards when removing path elements for greater efficiency. - When removing `/../` components, avoid continuously searching from the start of the path and instead search from the last found '/../'.