Closed asmwarrior closed 1 year ago
I think I have fixed this bug in the PR, but please note that restore a string and later recover it maybe cause some performance issue.
this will not cause performance issues. string_view
s are tiny reference-types that just contain a pointer to the beginning of the view and a length. the actual string is owned by the user who calls parse
If you look at this code, the
sv
get changed when running theleft.visit(sv)
, and never get rewind, I think this should be a bug.For testing the code:
It is strange that only the
callback_hello
function get called, not both. It is expected to call both.