History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CORE-73
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Scott Farquhar
Reporter: Scott Farquhar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OSCore

TextUtils.plainTextToHtml creates a lot of unneccessary garbage.

Created: 03/Jan/06 04:13 AM   Updated: 03/Jan/06 05:03 AM
Component/s: TextUtils
Affects Version/s: None
Fix Version/s: 2.2.6


 Description  « Hide
We should be able to optimise it.

 All   Comments   Change History      Sort Order:
Scott Farquhar - [03/Jan/06 05:03 AM ]
To give some idea of how bad memory usage was, and how much it was improved, an 800k text file containing JIRA descriptions was fed through TextUtils.plainTextToHtml()

Initially it produced 1.2 GB of garbage!

It now produces around 20mb, although that could probably be optimised further.