fukamachi / clack

Web server abstraction layer for Common Lisp
MIT License
1.05k stars 86 forks source link

<clack-app-directory> slow for big files listing #78

Closed lucashpandolfo closed 10 years ago

lucashpandolfo commented 10 years ago

When using <clack-app-directory> to list a directory with big files the system hangs for a while.

The reason seems to be file-size taking up a lot of time. Why not use file-length instead of reading each file byte per byte to determine the file size?