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
closes #578

commit 7e1c8410a3df45df62830f1dd29df18ac89b69a6
Author: latkin <latkin@microsoft.com>
Date:   Wed Aug 12 14:58:45 2015 -0700

    Fix logic in TryChopPropertyName

commit cf72133
Author: Jack Pappas <jack-pappas@users.noreply.github.com>
Date:   Sun Aug 9 15:54:28 2015 -0400

    Streamlining and minor cleanup of code in the PrettyNaming module.
    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 authored and latkin committed Aug 13, 2015
1 parent 0063d9e commit f094532
Showing 1 changed file with 327 additions and 167 deletions.
Loading

0 comments on commit f094532

Please sign in to comment.