Are there any general performance tips that you've come across that aren't 
immediately obvious?

Stuff like:

  * Sequence / String assignment uses copying semantics (and avoiding with 
{.shallow.} or ref)
  * Avoiding hidden allocations
  * Good patterns for submitting easily parallelizable stuff to the threadpool
  * Effectively using slices to avoid allocations
  * Append vs add vs '&' for sequences and strings



If performance is an issue I usually just try to profile with Apple's profiling 
tools in XCode or the equivalent in Linux, but I don't feel like I've developed 
a sense yet for how to write really idiomatic, performant code "the first time".

If nothing else, it would be a good blog post ;)

Reply via email to