[hunchentoot-devel] Getting multiple post parameters with same name

Hey Everyone, So I was wondering if there is any way for us to get multiple post parameters with the same name from a Hunchentoot request without incurring a performance hit. Appreciate any help that could be offered over this. Thank you all in advance, Regards, Mackram Raydan Company: www.imagimate.com Website: www.trailoflight.net "An invasion of armies can be resisted, but not an idea whose time has come." Victor Hugo

Mackram, how does the POST-PARAMETERS method not meet your requirements? What exactly do you mean by "without incurring a performance hit"? -Hans On Wed, Dec 2, 2009 at 23:04, Mackram Raydan <mackram@gmail.com> wrote:
Hey Everyone,
So I was wondering if there is any way for us to get multiple post parameters with the same name from a Hunchentoot request without incurring a performance hit. Appreciate any help that could be offered over this.
Thank you all in advance,
Regards,
Mackram Raydan
Company: www.imagimate.com Website: www.trailoflight.net
"An invasion of armies can be resisted, but not an idea whose time has come." Victor Hugo
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

Hey Hans the documentation states that post-parameters will return alist and according to my knowledge (which I admit is basic) processing alist for search is not very recommended please correct me if I am wrong Thanks Mackram On Dec 3, 2009 12:22 AM, "Hans Hübner" <hans.huebner@gmail.com> wrote: Mackram, how does the POST-PARAMETERS method not meet your requirements? What exactly do you mean by "without incurring a performance hit"? -Hans On Wed, Dec 2, 2009 at 23:04, Mackram Raydan <mackram@gmail.com> wrote: > Hey Everyone, > > So I wa...
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

On Thu, Dec 3, 2009 at 17:14, Mackram Raydan <mackram@gmail.com> wrote:
Hey Hans the documentation states that post-parameters will return alist and according to my knowledge (which I admit is basic) processing alist for search is not very recommended please correct me if I am wrong
Hunchentoot uses an alist for the headers internally, so you may as well do it externally. Using alists for large amounts of data can be unacceptably slow as access time is linear. For (post) parameters, this is not a problem as the number of parameters is slow and a "better" data structure may very well be slower for the small number of items that typically constitute a request parameter list. Before being scared about certain data structures in the future, make some measurements and consider the use case. -Hans
participants (2)
-
Hans Hübner
-
Mackram Raydan