Skip to content

Commit

Permalink
Switch to StringBuffer
Browse files Browse the repository at this point in the history
It looks like it's faster than ArrayBuffer in many cases these days
while of course it's still not always faster.
  • Loading branch information
k0kubun committed Oct 14, 2022
1 parent 8c659c2 commit bc5484f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hamlit/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Hamlit
class Engine < Temple::Engine
define_options(
:buffer_class,
generator: Temple::Generators::ArrayBuffer,
generator: Temple::Generators::StringBuffer,
format: :html,
attr_quote: "'",
escape_html: true,
Expand Down

0 comments on commit bc5484f

Please sign in to comment.