Neat. We could use this as a soft dependency ( if defined? :StringBuffer
style )

- tobi
CEO Shopify


On Wed, Mar 19, 2014 at 2:30 PM, Dylan Thacker-Smith <
notifications@github.com> wrote:

> In lib/liquid/template.rb:
>
> > @@ -110,7 +110,8 @@ def errors
> >      #    filters and tags and might be useful to integrate liquid more with its host application
> >      #
> >      def render(*args)
> > -      return '' if @root.nil?
> > +      output = ''
>
> Created a proof of concept that will create a string with a given capacity
> using rb_str_buf_new as a gem.
> https://github.com/dylanahsmith/ruby-string-buffer
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Shopify/liquid/pull/319/files#r10764081>
> .
>