Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is a 'unit' and what is 'nesting'? #232

Open
DougBeney opened this issue Oct 19, 2018 · 0 comments
Open

What is a 'unit' and what is 'nesting'? #232

DougBeney opened this issue Oct 19, 2018 · 0 comments

Comments

@DougBeney
Copy link

DougBeney commented Oct 19, 2018

size_t unit;	/* reallocation unit size (0 = read-only buffer) */

Line #34 buffer.h

My guess is that it is used as a unit to incrementally grow the size of your buffer when needed.

Why is a 'unit' required and what are some good practices to know what number to set?"

I noticed that the wiki uses "16" as a unit and hoedown.c uses these two different values for the input/output buffer sizes:

#define DEF_IUNIT 1024
#define DEF_OUNIT 64

Thanks!

EDIT:
Also, what is 'nesting' in the context of hoedown_html_renderer_new and hoedown-document_new? "Maximum level of block nesting parsed." Is it just about markdown lists?

@DougBeney DougBeney changed the title What is a 'unit'? What is a 'unit' and what is 'nesting'? Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant