Artifacts Associated With Ticket 1020491fffffffff
Ticket change [94f7267075] (rid 106087) by nobody on 2004-09-01 15:13:18:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
source: package require http set in [open submit.log r] set log [read $in] set submission [::http::formatQuery email [email protected] 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 [email protected] 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
- foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "None"
- title initialized to:
::http::formatQuery takes 5x longer for twice the data
- type initialized to: "Bug"
Ticket change [cfd885beaf] (rid 113061) by nobody on 2004-09-01 22:13:18:
- icomment:
File Added - 99982: bug.log
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Add attachment "bug.log" [dd2893514a] (rid 114615) by nobody on 2004-09-01 22:13:18.
Ticket change [b4e110a197] (rid 125124) by dkf on 2005-01-06 17:33:32:
- subsystem changed to: "29. http Package"
Ticket change [85f9a5092b] (rid 131425) by dkf on 2005-01-06 18:39:03:
- status changed to: "Deleted"
Ticket change [9fee74af3d] (rid 96724) by dkf on 2005-01-06 18:39:04:
- assignee changed to: "dkf"
- closedate changed to: "2005-01-06T11:39:04"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 This comes down to http::mapReply being horribly inefficient. Recoding to use [string map] should make an enormous difference! Fixed in 8.4 branch and HEAD.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "dkf"