On Sunday, 2 March 2014 12:49:15 UTC+5:30, Shantanu Kumar wrote: > > > > On Sunday, 2 March 2014 05:32:00 UTC+5:30, bob wrote: >> >> >> Good point, Thanks a lot. >> >> Shall we improve the str fn in the core lib? From my point of view, the >> core fns should be performance sensitive. >> > > If string formation is the bottleneck in your app and if you can come up > with a version of `str` function that works in all use-cases, then you can > probably `alter-var-root` the str fn with yours as long as you own the > responsibility. > > I noticed the following macro (ignore the reflection warnings) can help > shave some nanoseconds in a large tight loop, but I leave to you to decide > how much worth it really is: >
Just to clarify: I meant `some nanoseconds` per invocation for small string only. Overall saving would be proportional to the occurrence count and args count. 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/groups/opt_out.