From 5df25864eb449b407a9ab6244045cd4451e1d6fb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 6 Sep 2016 13:51:46 -0700 Subject: 3300 --- 030container.cc | 2 ++ 036refcount.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/030container.cc b/030container.cc index c1b682c6..80d3e259 100644 --- a/030container.cc +++ b/030container.cc @@ -165,6 +165,8 @@ if (t.kind == CONTAINER) { //: precompute Container_metadata before we need size_of //: also store a copy in each reagent in each instruction in each recipe +//: does unnecessary work for meaningless types +//: e.g. (address number) also computes size of 'address' :(after "Begin Instruction Modifying Transforms") // needs to happen before transform_names, therefore after "End Type Modifying Transforms" below Transform.push_back(compute_container_sizes); diff --git a/036refcount.cc b/036refcount.cc index c6e41471..80289641 100644 --- a/036refcount.cc +++ b/036refcount.cc @@ -277,9 +277,10 @@ bool operator<(const address_element_info& a, const address_element_info& b) { return false; // equal } - //: populate metadata.address in a separate transform, because it requires //: already knowing the sizes of all types +//: does unnecessary work for meaningless types +//: e.g. (address number) also computes address offsets for 'address' :(after "Transform.push_back(compute_container_sizes)") Transform.push_back(compute_container_address_offsets); -- cgit 1.4.1-2-gfad0