diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-05 02:36:33 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-05 02:36:33 +0000 |
commit | 92743be24d5ccc99de21dee81ee36307b94877a7 (patch) | |
tree | 45dbd7bd702b920ef6f197d730995e6ebff598dc /content/content.h | |
parent | 57c30e59f270afc02d4bdbc0b0fbcd509302c195 (diff) | |
download | netsurf-92743be24d5ccc99de21dee81ee36307b94877a7.tar.gz netsurf-92743be24d5ccc99de21dee81ee36307b94877a7.tar.bz2 |
[project @ 2005-04-05 02:36:33 by rjw]
Reduce re-allocation of memory when receiving files (drastically increases the speed of loading large files locally). Sprite files no longer require two copies of their data.
svn path=/import/netsurf/; revision=1598
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h index 387fc7a37..0c6833e67 100644 --- a/content/content.h +++ b/content/content.h @@ -239,6 +239,7 @@ struct content { struct fetch *fetch; /**< Associated fetch, or 0. */ char *source_data; /**< Source data, as received. */ unsigned long source_size; /**< Amount of data fetched so far. */ + unsigned long source_allocated; /**< Amount of space allocated so far. */ unsigned long total_size; /**< Total data size, 0 if unknown. */ bool no_error_pages; /**< Used by fetchcache(). */ |