Comment about having to slurp the whole compressed file if using write()/close()

parent 63c245ec
......@@ -1982,6 +1982,12 @@ rsvg_handle_close (RsvgHandle * handle, GError ** error)
if (priv->state == RSVG_HANDLE_STATE_READING_COMPRESSED) {
gboolean ret;
/* FIXME: when using rsvg_handle_write()/rsvg_handle_close(), as opposed to using the
* stream functions, for compressed SVGs we buffer the whole compressed file in memory
* and *then* uncompress/parse it here.
*
* We should make it so that the incoming data is decompressed and parsed on the fly.
*/
ret = rsvg_handle_read_stream_sync (handle, priv->compressed_input_stream, NULL, error);
g_object_unref (priv->compressed_input_stream);
priv->compressed_input_stream = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment