stephenmcd / filebrowser-safe

File manager for Mezzanine
Other
42 stars 104 forks source link

Pre-setting FileObject._is_folder for performance #131

Open wonderbeyond opened 5 years ago

wonderbeyond commented 5 years ago

This is especially useful for filebrowser_safe.views.browse, in which we already know whether an object is folder or not before initializing the FileObject instance.

PS: I am using S3 storage backend, I can observe about 3x performance optimization.