PERFORMANCE
Changed some struct values from pointers to normal values for improved performance.
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ func (r Reader) newFileInfo(e directory.Entry) (fileInfo, error) {
|
||||
if err != nil {
|
||||
return fileInfo{}, err
|
||||
}
|
||||
return newFileInfo(e.Name, i), nil
|
||||
return newFileInfo(e.Name, &i), nil
|
||||
}
|
||||
|
||||
func newFileInfo(name string, i *inode.Inode) fileInfo {
|
||||
|
||||
Reference in New Issue
Block a user