irods / irods_client_nfsrods

An nfs4j Virtual File System implementation supporting the iRODS Data Grid
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Avoid unnecessary stat in middle of list operation #189

Closed korydraughn closed 1 year ago

korydraughn commented 1 year ago

Optimization

The following stat can be avoided if the object ID (i.e. inode number) is retrieved from the list entry that's already available to the loop. https://github.com/irods/irods_client_nfsrods/blob/aab87f6d29f36226a1c3e4e345b8884170ccfba5/irods-vfs-impl/src/main/java/org/irods/nfsrods/vfs/IRODSVirtualFileSystem.java#L1020-L1028

Here's the list entry. https://github.com/irods/irods_client_nfsrods/blob/aab87f6d29f36226a1c3e4e345b8884170ccfba5/irods-vfs-impl/src/main/java/org/irods/nfsrods/vfs/IRODSVirtualFileSystem.java#L1015