<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/netsurf/libparserutils.git/include/parserutils, branch master</title>
<subtitle>git.netsurf-browser.org: libparserutils.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/'/>
<entry>
<title>(buffer): Add parserutils_buffer_appendv()</title>
<updated>2022-11-26T14:10:43+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>dsilvers@digital-scurf.org</email>
</author>
<published>2022-11-26T14:10:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=010c5f5b3c3db4c07c19e706c9a70c886b614497'/>
<id>010c5f5b3c3db4c07c19e706c9a70c886b614497</id>
<content type='text'>
Signed-off-by: Daniel Silverstone &lt;dsilvers@digital-scurf.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel Silverstone &lt;dsilvers@digital-scurf.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Buffer: Optimise to minimise memmove shuffles.</title>
<updated>2021-05-16T13:35:30+00:00</updated>
<author>
<name>Michael Drake</name>
<email>tlsa@netsurf-browser.org</email>
</author>
<published>2021-05-16T13:35:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=d101b2bb6dc98050f8f1b04d9d2bfeeff5a120c7'/>
<id>d101b2bb6dc98050f8f1b04d9d2bfeeff5a120c7</id>
<content type='text'>
Previously the data in the linear buffer was always stored at
the start of the allocation, pointed to by `buffer-&gt;data`.
This was achieved by memmoving every time data was consumed
from the front.

Now the allocation is pointed to by `buffer-&gt;alloc`, and the
start of the data is pointed to by `buffer-&gt;data` (as before).

This means client code does not need to change to get at the
data.

The advantage comes when we discard the from the start of the
buffer, when some data is consumed.  We now simply advance the
data pointer by the number of bytes to be discarded, and reduce
the buffer length by the same amount.

If the used portion of the buffer now fits between the start
of the allocation and the current start of the data, it is
memcpyed to the allocation start, otherwise it is left alone.

This is a significant optimisation when the size of the chunk
is large, such as when loading from disc. (When the first
(only) "chunk" is just the whole file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the data in the linear buffer was always stored at
the start of the allocation, pointed to by `buffer-&gt;data`.
This was achieved by memmoving every time data was consumed
from the front.

Now the allocation is pointed to by `buffer-&gt;alloc`, and the
start of the data is pointed to by `buffer-&gt;data` (as before).

This means client code does not need to change to get at the
data.

The advantage comes when we discard the from the start of the
buffer, when some data is consumed.  We now simply advance the
data pointer by the number of bytes to be discarded, and reduce
the buffer length by the same amount.

If the used portion of the buffer now fits between the start
of the allocation and the current start of the data, it is
memcpyed to the allocation start, otherwise it is left alone.

This is a significant optimisation when the size of the chunk
is large, such as when loading from disc. (When the first
(only) "chunk" is just the whole file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace use of abort() with assertions.</title>
<updated>2014-01-13T02:00:25+00:00</updated>
<author>
<name>John-Mark Bell</name>
<email>jmb@netsurf-browser.org</email>
</author>
<published>2014-01-13T02:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=93c721d6edc90e6f06eff8701824aa0d9ed6da16'/>
<id>93c721d6edc90e6f06eff8701824aa0d9ed6da16</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove client allocation function.</title>
<updated>2013-12-14T23:14:09+00:00</updated>
<author>
<name>Michael Drake</name>
<email>tlsa@netsurf-browser.org</email>
</author>
<published>2013-12-14T23:14:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=8e48b931091cbc99abeffacc7af80f363495ec23'/>
<id>8e48b931091cbc99abeffacc7af80f363495ec23</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove init/final code and turn aliases into static data structure. r=vince</title>
<updated>2010-12-04T15:28:50+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>dsilvers@netsurf-browser.org</email>
</author>
<published>2010-12-04T15:28:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=2fee3114b46682b220c73aae7c4f2466dedb81ff'/>
<id>2fee3114b46682b220c73aae7c4f2466dedb81ff</id>
<content type='text'>
svn path=/trunk/libparserutils/; revision=10961
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn path=/trunk/libparserutils/; revision=10961
</pre>
</div>
</content>
</entry>
<entry>
<title>Sprinkle some C++ scoping around</title>
<updated>2010-10-23T23:00:21+00:00</updated>
<author>
<name>John Mark Bell</name>
<email>jmb@netsurf-browser.org</email>
</author>
<published>2010-10-23T23:00:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=d485dbd52ebc6a911a5ddcf6891212fccb82e8c0'/>
<id>d485dbd52ebc6a911a5ddcf6891212fccb82e8c0</id>
<content type='text'>
svn path=/trunk/libparserutils/; revision=10901
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn path=/trunk/libparserutils/; revision=10901
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix whitespace</title>
<updated>2010-10-23T17:22:43+00:00</updated>
<author>
<name>John Mark Bell</name>
<email>jmb@netsurf-browser.org</email>
</author>
<published>2010-10-23T17:22:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=4dfe13fb3772f9f9df944238e2fcf782b8c336aa'/>
<id>4dfe13fb3772f9f9df944238e2fcf782b8c336aa</id>
<content type='text'>
svn path=/trunk/libparserutils/; revision=10898
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn path=/trunk/libparserutils/; revision=10898
</pre>
</div>
</content>
</entry>
<entry>
<title>Lose a bunch of trailing commas.</title>
<updated>2009-04-15T15:50:06+00:00</updated>
<author>
<name>John Mark Bell</name>
<email>jmb@netsurf-browser.org</email>
</author>
<published>2009-04-15T15:50:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=82c9ccd349f10a551ff6df098e9a136982de6e2b'/>
<id>82c9ccd349f10a551ff6df098e9a136982de6e2b</id>
<content type='text'>
GCC 2.95 compatibility.

svn path=/trunk/libparserutils/; revision=7094
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GCC 2.95 compatibility.

svn path=/trunk/libparserutils/; revision=7094
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ability to retrieve vector length. Fix missing note in iteration api</title>
<updated>2009-02-15T12:09:03+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>dsilvers@netsurf-browser.org</email>
</author>
<published>2009-02-15T12:09:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=ac294568caf6b7c4572a62809be531a117108e8b'/>
<id>ac294568caf6b7c4572a62809be531a117108e8b</id>
<content type='text'>
svn path=/trunk/libparserutils/; revision=6527
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn path=/trunk/libparserutils/; revision=6527
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove dict, hash and rbtree from libparserutils</title>
<updated>2009-02-14T19:18:33+00:00</updated>
<author>
<name>Daniel Silverstone</name>
<email>dsilvers@netsurf-browser.org</email>
</author>
<published>2009-02-14T19:18:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/netsurf/libparserutils.git/commit/?id=bf44aeaf5cd7f03d3bd842c8046b7346c5035f06'/>
<id>bf44aeaf5cd7f03d3bd842c8046b7346c5035f06</id>
<content type='text'>
svn path=/trunk/libparserutils/; revision=6512
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
svn path=/trunk/libparserutils/; revision=6512
</pre>
</div>
</content>
</entry>
</feed>
