Skip to content

Avoid unnecessary allocations#1

Open
robinkrahl wants to merge 1 commit intoGuillemCastro:masterfrom
robinkrahl:avoid-allocations
Open

Avoid unnecessary allocations#1
robinkrahl wants to merge 1 commit intoGuillemCastro:masterfrom
robinkrahl:avoid-allocations

Conversation

@robinkrahl
Copy link

When checking whether the mount point list contains a path, it is not
necessary to allocate a vector with all matching mount points. Instead,
it is sufficient to return true once the first matching mount point is
found.

When checking whether the mount point list contains a path, it is not
necessary to allocate a vector with all matching mount points.  Instead,
it is sufficient to return true once the first matching mount point is
found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant