src: avoid copying strings in FSPermission::Apply · nodejs/node@0fb35b6 · GitHub
Skip to content

Commit 0fb35b6

Browse files
tniessenRafaelGSS
authored andcommitted
src: avoid copying strings in FSPermission::Apply
The use of string_view and subsequent copying to a string was supposed to be a minor optimization in 640a7918, however, since 413c16e, no string splitting occurs anymore. Therefore, we can simply pass around some references instead of using string_view or copying strings. Refs: #48491 Refs: #49047 PR-URL: #50662 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 83ad272 commit 0fb35b6

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/permission/fs_permission.cc

Lines changed: 3 additions & 5 deletions

0 commit comments

Comments
 (0)