You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
actix-fs: Tidy up configuration capability of StaticFiles/NamedFiles #730
Not sure whether it falls under this issue or not - we are routinely serving the content of tar or zip file as a group of static files. It would super cool to just specify the archive file and have its content served without unpacking it. Does it make sense? Are there any other folks out there that need this feature?
There is one concern is that it would affect performance as you'd need to either unpack it every time or have a way to unpack it into memory once...
I'm not sure if many people would need such feature... Isn't it better to have your files unpacked for optimal performance?
I am not saying it is the most universal feature, just bringing the idea forward. You are correct that if that would be a case when performance matters unpacking would be the way to go. The use case we have is a specifically low performance and the web application is compiled into the binary.
Anyway, as mentioned earlier, a separate crate may be the most appropriate way to tackle this.
Activity
fafhrd91 commentedon Mar 25, 2019
@DoumanAsh do you want to do more for for this ticket? it's closed automatically
DoumanAsh commentedon Mar 25, 2019
Not really, if someone will have suggestion we can re-open. But as of now I do not think there are any API changes we need for actix-fs
imp commentedon Mar 28, 2019
Not sure whether it falls under this issue or not - we are routinely serving the content of
tarorzipfile as a group of static files. It would super cool to just specify the archive file and have its content served without unpacking it. Does it make sense? Are there any other folks out there that need this feature?fafhrd91 commentedon Mar 29, 2019
@imp interesting idea, but i am not sure this should be part of core crate. well, it could be feature of actix-files crate
DoumanAsh commentedon Mar 29, 2019
There is one concern is that it would affect performance as you'd need to either unpack it every time or have a way to unpack it into memory once...
I'm not sure if many people would need such feature... Isn't it better to have your files unpacked for optimal performance?
imp commentedon Mar 31, 2019
Agree, this probably best be out of the core crate. Just wanted to share the use case and set the thinking going.
imp commentedon Mar 31, 2019
I am not saying it is the most universal feature, just bringing the idea forward. You are correct that if that would be a case when performance matters unpacking would be the way to go. The use case we have is a specifically low performance and the web application is compiled into the binary.
Anyway, as mentioned earlier, a separate crate may be the most appropriate way to tackle this.
fafhrd91 commentedon Mar 31, 2019
if you'd like, you can use actix org for your crate.