Skip to content

Commit cf72133

Browse files
committed
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.
1 parent e980c65 commit cf72133

File tree

1 file changed

+323
-167
lines changed

1 file changed

+323
-167
lines changed

0 commit comments

Comments
 (0)