From: SourceForge.net <no...@so...> - 2004-09-01 15:13:20
|
Bugs item #1020491, was opened at 2004-09-01 08:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1020491&group_id=10894 Category: None Group: current: 8.4.7 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: ::http::formatQuery takes 5x longer for twice the data Initial Comment: source: package require http set in [open submit.log r] set log [read $in] set submission [::http::formatQuery email al...@as... userid 58276954 format DSHIELD tz - 04:00 log $log Submit submit] # set token [::http::geturl http://www.dshield.org/report.php -query $submission] # puts [::http::code $token] # ::http::cleanup $token close $in email al...@as... This program opens a log file and uses HTTP POST to submit to a website. See an example of the log file attached as bug.log. When this program is run with 1250 lines in the log, it takes 16 seconds (Pentium M laptop 1.3 GHz). If the number of lines is 2500, the program takes 75 seconds to run. Somehow the processing in ::http::formatQuery does not scale well. I am using the ActiveState distro of TCL 8.4.7.0 with HTTP package 2.5.0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1020491&group_id=10894 |