diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-01-19 00:51:02 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-23 08:25:54 -0800 |
commit | b0a4cfa36e99c27dd2b20be8f8888fa7721bad58 (patch) | |
tree | 528ace24d0526b0dd647bcd774f348e677b78a9f /src/main.c | |
parent | 75b48c5938f5984dbcf79a579d15c9cbd6447d12 (diff) |
Use C string instead of chunk for literal text
Use zero-terminated C strings and a separate length field instead of
cmark_chunks. Literal inline text will now be copied from the parent
block's content buffer, slowing the benchmark down by 10-15%.
The node struct never references memory of other nodes now, fixing #309.
Node accessors don't have to check for delayed creation of C strings,
so parsing and iterating all literals using the public API should
actually be faster than before.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions