[jira] Resolved: (MODPYTHON-93) Improve util.FieldStorage efficiency

2006-11-22 Thread Graham Dumpleton (JIRA)
 [ http://issues.apache.org/jira/browse/MODPYTHON-93?page=all ]

Graham Dumpleton resolved MODPYTHON-93.
---

Resolution: Fixed

 Improve util.FieldStorage efficiency
 

 Key: MODPYTHON-93
 URL: http://issues.apache.org/jira/browse/MODPYTHON-93
 Project: mod_python
  Issue Type: Improvement
  Components: core
Affects Versions: 3.2.7
Reporter: Jim Gallacher
 Assigned To: Graham Dumpleton
Priority: Minor
 Fix For: 3.3

 Attachments: modpython325_util_py_dict.patch


 Form fields are saved as a list in a FieldStorage class instance. The class 
 implements a __getitem__ method to provide dict-like behaviour.  This method 
 iterates over the complete list for every call to __getitem__. Applications 
 that need to access all the fields when processing the form will show O(n^2) 
 behaviour where n == the number of form fields. This overhead could be 
 avoided by creating a dict (to use as an index) when the FieldStorage 
 instance is created.
 Mike Looijmans has been investigating StringField and Field as well. It is 
 probably reasonable to include information on his work in this issue as well, 
 so that we can consider all of these efficiency issues in toto.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Resolved: (MODPYTHON-93) Improve util.FieldStorage efficiency

2006-11-04 Thread Graham Dumpleton (JIRA)
 [ http://issues.apache.org/jira/browse/MODPYTHON-93?page=all ]

Graham Dumpleton resolved MODPYTHON-93.
---

Resolution: Fixed

Not heard of anyone who has specifically tested to see if this works with older 
versions of Trac or not, but code passing tests on various Python/Apache 
versions so that's good enough for now.

 Improve util.FieldStorage efficiency
 

 Key: MODPYTHON-93
 URL: http://issues.apache.org/jira/browse/MODPYTHON-93
 Project: mod_python
  Issue Type: Improvement
  Components: core
Affects Versions: 3.2.7
Reporter: Jim Gallacher
 Assigned To: Graham Dumpleton
Priority: Minor
 Fix For: 3.3

 Attachments: modpython325_util_py_dict.patch


 Form fields are saved as a list in a FieldStorage class instance. The class 
 implements a __getitem__ method to provide dict-like behaviour.  This method 
 iterates over the complete list for every call to __getitem__. Applications 
 that need to access all the fields when processing the form will show O(n^2) 
 behaviour where n == the number of form fields. This overhead could be 
 avoided by creating a dict (to use as an index) when the FieldStorage 
 instance is created.
 Mike Looijmans has been investigating StringField and Field as well. It is 
 probably reasonable to include information on his work in this issue as well, 
 so that we can consider all of these efficiency issues in toto.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Resolved: (MODPYTHON-93) Improve util.FieldStorage efficiency

2006-03-21 Thread Jim Gallacher (JIRA)
 [ http://issues.apache.org/jira/browse/MODPYTHON-93?page=all ]
 
Jim Gallacher resolved MODPYTHON-93:


Resolution: Fixed

 Improve util.FieldStorage efficiency
 

  Key: MODPYTHON-93
  URL: http://issues.apache.org/jira/browse/MODPYTHON-93
  Project: mod_python
 Type: Improvement
   Components: core
 Versions: 3.2.7
 Reporter: Jim Gallacher
 Assignee: Jim Gallacher
 Priority: Minor
  Fix For: 3.3
  Attachments: modpython325_util_py_dict.patch

 Form fields are saved as a list in a FieldStorage class instance. The class 
 implements a __getitem__ method to provide dict-like behaviour.  This method 
 iterates over the complete list for every call to __getitem__. Applications 
 that need to access all the fields when processing the form will show O(n^2) 
 behaviour where n == the number of form fields. This overhead could be 
 avoided by creating a dict (to use as an index) when the FieldStorage 
 instance is created.
 Mike Looijmans has been investigating StringField and Field as well. It is 
 probably reasonable to include information on his work in this issue as well, 
 so that we can consider all of these efficiency issues in toto.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira