| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously the data in the linear buffer was always stored at
the start of the allocation, pointed to by `buffer->data`.
This was achieved by memmoving every time data was consumed
from the front.
Now the allocation is pointed to by `buffer->alloc`, and the
start of the data is pointed to by `buffer->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.
|
| |
|
| |
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=10961
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=10901
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=10898
|
|
|
|
|
|
| |
GCC 2.95 compatibility.
svn path=/trunk/libparserutils/; revision=7094
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=6527
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=6512
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=6008
|
|
|
|
|
|
| |
Add new API to enable on-the-fly changing of the input charset. This is only possible if no data has been read from the stream.
svn path=/trunk/libparserutils/; revision=5969
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5965
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5963
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5861
|
|
|
|
|
|
| |
Limit maximum length of data items stored in hash/chunked array to 2^16-1.
svn path=/trunk/libparserutils/; revision=5858
|
|
|
|
|
|
|
|
|
| |
+ Chunked array
+ Hash table (open addressing)
Constify parameter to parserutils_stack_push
svn path=/trunk/libparserutils/; revision=5850
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5673
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5652
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5596
|
|
|
|
|
|
|
| |
This will prevent exhorbitant memory leakage when running make test in
client code.
svn path=/trunk/libparserutils/; revision=5365
|
|
|
|
|
|
| |
testsuite without running out of hard drive space.
svn path=/trunk/libparserutils/; revision=5183
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5171
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=5149
|
|
|
|
|
|
|
| |
Note that, if lpu is built with NDEBUG defined, then the randomisation is a NOP.
Therefore, to use the randomisation, you want to build debug versions of both lpu and whatever's using it.
svn path=/trunk/libparserutils/; revision=5085
|
|
|
|
|
|
|
|
| |
in debug mode.
This leaks memory lots, deliberately.
svn path=/trunk/libparserutils/; revision=5081
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=4827
|
|
|
|
|
|
| |
Add basic implementations of a stack and a vector.
svn path=/trunk/libparserutils/; revision=4824
|
|
|
|
| |
svn path=/trunk/libparserutils/; revision=4469
|
|
|
|
|
|
| |
Even comes with testcases, which is nice.
svn path=/trunk/libparserutils/; revision=4138
|
|
svn path=/trunk/libparserutils/; revision=4111
|