# Storj is slow on serving small files

**URL:** <https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897>\
**Category:** Product Discussions\
**Created:** [March 16, 2023, 10:25am UTC](https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897 "2023-03-16T10:25:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bangank36](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/bangank36/32/1124_2.png) [@bangank36](https://forum.storj.io/u/bangank36)\
**Post date:** [March 16, 2023, 10:25am UTC](https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897/1 "2023-03-16T10:25:53Z")

</div>

Hi there,  
I am in the process of finding a place to store my deepzoom ( zoomify format ) images, I am trying to compare Cloudflare R2 and Storj, since they are both S3 compatible, I used Cyberduck to sync the images from my machine to the buckets with no issue ( yay! ).

But during the test, I realize that it is taking longer to load the tiles images in Storj than from R2 ( ~1.5s vs ~300ms )  
You can check the rough demo of the deepzoom images here in this URL:  
[[URL]](https://curious-sherbet-5852e9.netlify.app/index.html)

Could anyone tell me what was wrong with my Storj bucket settings, Or it is just Storj does not optimize for loading small files yet?

The images URL are extracted from the object URL as suggested in [this reply](https://forum.storj.io/t/shared-bucket-shows-empty-folders/18422/11?fbclid=IwAR0KXeyUk74gmgMWtqyQjkFfzjkQxaLNsW-jjnLWycNNM2yD9tKYn0yaNU0)

---

<div class="post-metadata">

**Author:** ![Stob](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/stob/32/1137_2.png) [@Stob](https://forum.storj.io/u/Stob)\
**Post date:** [March 16, 2023, 10:29am UTC](https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897/2 "2023-03-16T10:29:17Z")

</div>

Hi @bangank36  
Storj is not best optimised for small files. It’s current best use case is large file transfers or lots of simultaneous transfers using the uplink library, not the S3 gateway.

---

<div class="post-metadata">

**Author:** ![bangank36](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/bangank36/32/1124_2.png) [@bangank36](https://forum.storj.io/u/bangank36)\
**Post date:** [March 16, 2023, 10:35am UTC](https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897/3 "2023-03-16T10:35:33Z")

</div>

Thanks for fast reply @Stob!  
Since you mentioned uplink library, will the speed improve with [Share] ([share - Storj DCS Docs](https://docs.storj.io/dcs/api-reference/uplink-cli/share-command)) command? Honestly, I don’t quite understand how the Share command works in Uplink CLI

---

<div class="post-metadata">

**Author:** ![Stob](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/stob/32/1137_2.png) [@Stob](https://forum.storj.io/u/Stob)\
**Post date:** [March 16, 2023, 10:57am UTC](https://forum.storj.io/t/storj-is-slow-on-serving-small-files/21897/5 "2023-03-16T10:57:28Z")

</div>

The Share process requires a gateway to serve the content, so the speed doesn’t change.

Uplink generates the access grant and URL for the share, similar to the web gui, however both methods use the gateway/linkshare service. Storj is working on improvements for time to first byte (TTFB) but at this time small files aren’t the best.
