Hi,
Does anyone have speed problems uploading big binary files to Hunchentoot? (I just made a clean install, and it's still slow. I've tested using both drakma:http-request and HTML forms.)
For a 60 meg file -- even on the same machine -- it takes about 90 seconds. SCP does it in 10 seconds. Here is my code:
;; Omitting handler, as it's called after the file is received in the ;; temp directory.
(defun start-webserver () (stop-webserver) (setf *catch-errors-p* nil) (setf *webserver* (start-server :mod-lisp-p t :port 3004)))
(defun upload-form () (cl-who:with-html-output-to-string (*standard-output*) (:form :action "upload" :enctype "multipart/form-data" :method :post "File to send" (:input :type :file :name "upload" :size 40) (:input :type :submit :value "send"))))
If no one else has this problem, I'll test further where my problem lies...
Thanks! Tayssir
Hi Tayssir,
On Wed, 11 Jun 2008 11:20:06 +0200, Tayssir John Gabbour tjg@pentaside.org wrote:
Does anyone have speed problems uploading big binary files to Hunchentoot? (I just made a clean install, and it's still slow. I've tested using both drakma:http-request and HTML forms.)
For a 60 meg file -- even on the same machine -- it takes about 90 seconds. SCP does it in 10 seconds. Here is my code:
Is that with the development version? All performance-related issues should be discussed with respect to the dev version as this is one of the areas it is supposed to address. See here
http://bknr.net/trac/browser/ediware
and the recent postings to this list. In particular, you need to update /all/ libraries listed there to test it.
Having said that, I suspect that file uploads might not be significantly faster than with the release version yet. Speeding them up will probably involve looking at and maybe replacing the RFC2388 library. This is also on my todo list but doesn't have such a high priority right now.
HTH, Edi.