From ce85ef1452bbc443b706e781abd7ada45af2568d Mon Sep 17 00:00:00 2001 From: pcwalton Date: Mon, 27 Aug 2012 16:48:40 -0700 Subject: [PATCH] Updated Note Rust performance fixes (markdown) --- Note-Rust-performance-fixes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Note-Rust-performance-fixes.md b/Note-Rust-performance-fixes.md index a2d60b6..e0c5127 100644 --- a/Note-Rust-performance-fixes.md +++ b/Note-Rust-performance-fixes.md @@ -39,6 +39,12 @@ pcwalton: pcwalton: also ty::sty comparison in the ty hashtable is calling into the shape glue. I'm going to try to fix that this week +pcwalton: +oh yeah, another thing I was thinking: stop making so many basic blocks + +pcwalton: +especially when optimization is off, LLVM goes basic-block-by-basic-block in codegen + ## Memory moves If you see large sequences of "mov" instructions, use `call_memmove` or `memzero` in trans, as appropriate. This is usually a symptom of code like `Store(bcx, Load(bcx, foo, bar), baz);`, which is *not* an efficient way to move large structural types around. \ No newline at end of file