Bug 451192 - AppendToStream should accept the entire byte array in one go
Summary: AppendToStream should accept the entire byte array in one go
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 10:35 EST by Neil Rashbrook CLA
Modified: 2015-02-26 06:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Rashbrook CLA 2014-11-12 10:35:27 EST
Currently the HTML bytes as generated by the call to Mozilla.setText are fed into the nsIWebBrowserStream in pages of 8K. This is entirely unnecessary as the stream is an unbounded memory buffer that has its own internal paging mechanism. Instead all the bytes can be passed in one go, simplifying the calling code.
Comment 1 Lakshmi P Shanmugam CLA 2015-02-26 06:18:53 EST
Please see gerrit for comments.