Menu

[r1]: / trunk / benchmarks / join_strings.h2o  Maximize  Restore  History

Download this file

14 lines (12 with data), 386 Bytes

<*> join strings
repeated joining (concatenation) of strings 
</*>

<method join_strings n=req>
  <set out=""/>
  n.<for_each>
   <set out=out.<join "some text" key ","/> />
  </for_each>
  out
</method>
<*> <join_strings n=10000/>  runaway program </*>
<a href=<w <join_strings n=1000/> /> "join_strings n=1000"/> <*> less than 1 second.  First time, took 5 seconds. </*>