Core: Optimized OutStream, removed DDUMPs

git-svn-id: svn://ultimatepp.org/upp/trunk@10032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-07-12 12:21:46 +00:00
parent ed83496a74
commit 220f751a03
6 changed files with 23 additions and 17 deletions

View file

@ -147,7 +147,7 @@ bool Stream::GetAll(Huge& h, size_t size)
String Stream::Get(int size)
{
if(size < 1024*1024) {
if(size < 32 * 1024*1024) {
StringBuffer b(size);
int n = Get(~b, size);
b.SetCount(n);
@ -1126,8 +1126,15 @@ void CompareStream::_Put(int w) {
OutStream::OutStream()
{
const int bsz = 64 * 1024;
h = new byte[bsz];
buffer = ptr = h;
wrlim = h + sizeof(h);
wrlim = h + bsz;
}
OutStream::~OutStream()
{
delete[] h;
}
void OutStream::_Put(int w)