Optimize Inner::shallow_clone (#217)

- Clones when the kind is INLINE or STATIC are sped up by over double.
- Clones when the kind is ARC are spec up by about 1/3.
This commit is contained in:
Sean McArthur
2018-07-03 15:21:26 -07:00
committed by Carl Lerche
parent 6414efe83b
commit 886dda0962
3 changed files with 193 additions and 117 deletions
+3 -3
View File
@@ -16,6 +16,6 @@ race:test::run_tests_console::*closure
# Probably more fences in std.
race:__call_tls_dtors
# `is_inline` is explicitly called concurrently without synchronization. The
# safety explanation can be found in a comment.
race:Inner::is_inline
# `is_inline_or_static` is explicitly called concurrently without synchronization.
# The safety explanation can be found in a comment.
race:Inner::is_inline_or_static