Edgewall Software

Opened 10 years ago

Last modified 8 years ago

#11802 closed enhancement

Ability to send chunked response in Request.send — at Initial Version

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.6
Component: rendering Version:
Severity: normal Keywords: chunked
Cc: leho@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Currently, Trac starts to response after entire of content is generated from genshi template. Users have a long wait for the response because the rendering is not fast. Especially, timeline and query pages are very slow when the page has many entries.

If Trac starts to response without waiting for entire of content, it would feel a bit fast to users.

In chunked-encoding.diff, Request.send accepts an iterable instance. The patch for 0.12.x is used in our Trac hosting.

Drawback of the changes is that exception while rendering the template cannot be shown as internal error.

Also, it is less improved in wiki page. Because wiki formatter format_to_* methods return entire of generated content. It needs to modify the methods returning content as iterable.

Change History (1)

by Jun Omae, 10 years ago

Attachment: chunked-encoding.diff added
Note: See TracTickets for help on using tickets.