Skip to content

Do not read the objects data on list - #873

Merged
fsouza merged 2 commits into
fsouza:mainfrom
ironsmile:do-not-read-object-data-on-list
May 3, 2023
Merged

Do not read the objects data on list#873
fsouza merged 2 commits into
fsouza:mainfrom
ironsmile:do-not-read-object-data-on-list

Conversation

@ironsmile

Copy link
Copy Markdown
Contributor

I am back with my object listing improvements 😄

This optimization takes advantage of the fact that the object metadata
could now be read from disk without reading its data. Previously the
whole file was read from disk in order to obtain its size and nothing
more. Instead, now a simple Stat is used.

@fsouza

fsouza commented Aug 14, 2022

Copy link
Copy Markdown
Owner

Hey @ironsmile, thanks for keeping working on this! Can you take a look at the test failure?

@ironsmile

Copy link
Copy Markdown
Contributor Author

Certainly! Did not realize there are failing tests originally.

This optimization takes advantage of the fact that the object metadata
could now be read from disk without reading its data. Previously the
whole file was read from disk in order to obtain its size and nothing
more. Instead, now a simple Stat is used.
@fsouza
fsouza force-pushed the do-not-read-object-data-on-list branch from 0c71dec to 0bf4764 Compare May 3, 2023 03:13
@fsouza
fsouza merged commit 196c354 into fsouza:main May 3, 2023
@ironsmile
ironsmile deleted the do-not-read-object-data-on-list branch May 5, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants