Skip to content

Commit

Permalink
Streamlining and minor cleanup of code in the PrettyNaming module.
Browse files Browse the repository at this point in the history
Compilation and decompilation of operators is now memoized for custom
(non-built-in) operators to improve performance.
Lifted creation of lists (now arrays) in the IsInfixOperator function
so they aren't re-created (potentially) on each function call.
Simplification to the TryChopPropertyName function per @latkin's suggestion.
Optimized the recursive function which performs the decompilation within 'decompileCustomOpName' so it's tail recursive and avoids allocating substrings and some Option<_> instances.
  • Loading branch information
jack-pappas committed Aug 12, 2015
1 parent e980c65 commit cf72133
Showing 1 changed file with 323 additions and 167 deletions.
Loading

0 comments on commit cf72133

Please sign in to comment.