Hi,

I am pleased to announce Stringer, a library for fast string concatenation. 
Stringer is designed (with tradeoffs) to complement Clojure's string concat 
operations.

https://github.com/kumarshantanu/stringer


Stringer's API contains several macros (so they can not be used as 
functions) - notably `strcat` and `strfmt` that are used frequently. 
`strcat` is the Java equivalent of string concatenation + operator. In 
Java, when you write ("foo" + 42 + "bar") the Java compiler generates 
in-line bytecode using java.lang.StringBuilder to concatenate the tokens. 
`strfmt` expects the format string (with limited specifier support) to be a 
literal and applies string interpolation to generate the formatted string 
much faster than `clojure.core/format`. The perf benchmark code is included 
in the repo.

We have used Stringer in production for over 3 years at SAP Concur with 
only one issue noticed/fixed over 2 years ago. It is usually hard to 
troubleshoot and optimize the long tail of latency; however, using Stringer 
has led to overall perf improvements in several composite use cases.


Shantanu

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to