You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before
test bench_parse_template ... bench: 25,960 ns/iter (+/- 2,495)
test bench_parse_text ... bench: 854 ns/iter (+/- 60)
test bench_parse_variable ... bench: 2,802 ns/iter (+/- 241)
test bench_render_template ... bench: 8,106 ns/iter (+/- 578)
test bench_render_text ... bench: 456 ns/iter (+/- 29)
test bench_render_variable ... bench: 1,617 ns/iter (+/- 117)
After:
test bench_parse_template ... bench: 25,607 ns/iter (+/- 2,131)
test bench_parse_text ... bench: 624 ns/iter (+/- 43)
test bench_parse_variable ... bench: 2,600 ns/iter (+/- 221)
test bench_render_template ... bench: 7,817 ns/iter (+/- 554)
test bench_render_text ... bench: 262 ns/iter (+/- 18)
test bench_render_variable ... bench: 1,392 ns/iter (+/- 106)
Looks like it took about 200ns off of both `parse` and `render`.
Fixescobalt-org#188
BREAKING CHANGE: `Context` now takes in an `Arc` to the filters.
Whenever we
parse
, we have tofilters.clone()
. This could be sped up by puttingParser::filters
into anArc
.Then whenever we
render
, we can pass theArc
in rather than doing anotherfilters.clone()
.Other efforts
Cow
in Value/Object, see Support 'static str/Cow<str> for Object::insert(...) #186Writer
when rendering, see Render toWriter
#187The text was updated successfully, but these errors were encountered: