extractNameValuePair repeatedly to extract parameters from TWikiVariables. A new extractParameters function that has been added to CairoRelease which does the same parsing as extractNameValuePair and returns a hash containing all name/value pairs. This is much more efficient.
extractNameValuePair related PerformanceImprovementsInDakar:
| Module | function | # of extractNameValuePair calls replaced |
|---|---|---|
| TWikiDotPm | handleSearchWeb | 26 |
| TWikiDotPm | handleWebAndTopicList | 7 |
| TWikiDotPm | handleIncludeFile | 4 |
| TWikiDotPm | handleMetaSearch | 4 |
| TWikiDotPm | handleRevisionInfo | 5 |
| TWikiDotPm | handleToc | 4 |
| TWikiDotPm | handleUrlParam | 5 |
extractNameValueHash($args) | Function | Number of calls to extractNameValuePair |
Candidate for benefits |
|---|---|---|
| handleIncludeFile | 4 | Y |
| handleMetaSearch | 4 | Y |
| handleSearchWeb | 21 | Y |
| handleTime | 1 | - |
| handleToc | 3 | Y |
| handleWebAndTopicList | 7 | Y |
| handleUrlParam | 2 | Y |
| handleUrlEncode | 1 | - |
| handleTmplP | 1 | - |
| renderParent | 5 | Y |
| getFormField | 6 | Y |
| renderMetaData | 1 | - |
| prvHandleWebVariable | 2 | Y |
| handleCalendar | 5 | Y |
| handleComment | 5 | Y |
| handleCityTime | 1 | - |
| handleTopicList | 4 | Y |
| handlePollResults | 7 | Y |
| handlePollVoters | 4 | Y |
| handleRandomPage | 3 | Y |
| doCalc | 1 | - |
| handleDrawing | 1 | - |
| - | Total Number Benefitting | 15 |
| - | Number of parses | 75 |
| - | Number of subs calling (Also maximum required parses) |
22 |
| - | Number of 'un-necessary' parses | 53 |
extractNameValuePair and would introduce incompatibilities with existing TWikiApplications. The extractParameters function that has been added to CairoRelease does the same parsing as extractNameValuePair and returns a hash.
-- PeterThoeny - 21 Oct 2004 | ChangeProposalForm | |
|---|---|
| TopicClassification | CodeRefactor |
| TopicSummary | Performance: Replace repeated extractNameValuePair calls with more efficient extractParameters call |
| CurrentState | MergedToCore |
| OutstandingIssues | |
| RelatedTopics | PerformanceImprovementsInDakar |
| InterestedParties | |
| ProposedFor | DakarRelease |
| TWikiContributors | PeterThoeny |