Changeset f86c8e5 for doc/papers
- Timestamp:
- Mar 9, 2018, 12:11:23 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3d8f2f8, b51e5fdb
- Parents:
- 12bbb367
- Location:
- doc/papers/general
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/Paper.tex
r12bbb367 rf86c8e5 2627 2627 & \CT{C} & \CT{\CFA} & \CT{\CC} & \CT{\CCV} \\ \hline 2628 2628 maximum memory usage (MB) & 10,001 & 2,502 & 2,503 & 11,253 \\ 2629 source code size (lines) & 197 & 186 & 1 33 & 303 \\2629 source code size (lines) & 197 & 186 & 125 & 293 \\ 2630 2630 redundant type annotations (lines) & 27 & 0 & 2 & 16 \\ 2631 2631 binary size (KB) & 14 & 257 & 14 & 37 \\ … … 2925 2925 stack() : head( nullptr) {} 2926 2926 stack( const stack<T> & o ) { copy( o ); } 2927 stack( stack<T> && o ) : head( o.head) { o.head = nullptr; }2928 2927 ~stack() { clear(); } 2929 2928 stack & operator= ( const stack<T> & o) { … … 2931 2930 clear(); 2932 2931 copy( o ); 2933 return *this;2934 }2935 stack & operator= ( stack<T> && o ) {2936 if ( this == &o ) return *this;2937 head = o.head;2938 o.head = nullptr;2939 2932 return *this; 2940 2933 } … … 2979 2972 stack() : head( nullptr ) {} 2980 2973 stack( const stack & o ) { copy( o ); } 2981 stack( stack && o ) : head( o.head ) { o.head = nullptr; } 2982 ~stack() { clear(); } 2974 ~stack() { clear(); } 2983 2975 stack & operator= ( const stack & o ) { 2984 2976 if ( this == &o ) return *this; 2985 2977 clear(); 2986 2978 copy( o ); 2987 return *this;2988 }2989 stack & operator= ( stack && o ) {2990 if ( this == &o ) return *this;2991 head = o.head;2992 o.head = nullptr;2993 2979 return *this; 2994 2980 } -
doc/papers/general/evaluation/cpp-stack.hpp
r12bbb367 rf86c8e5 31 31 stack() : head(nullptr) {} 32 32 stack(const stack<T>& o) { copy(o); } 33 stack(stack<T>&& o) : head(o.head) { o.head = nullptr; }34 33 ~stack() { clear(); } 35 34 … … 38 37 clear(); 39 38 copy(o); 40 return *this;41 }42 43 stack& operator= (stack<T>&& o) {44 if ( this == &o ) return *this;45 head = o.head;46 o.head = nullptr;47 39 return *this; 48 40 } -
doc/papers/general/evaluation/cpp-vstack.cpp
r12bbb367 rf86c8e5 15 15 stack::stack() : head(nullptr) {} 16 16 stack::stack(const stack& o) { copy(o); } 17 stack::stack(stack&& o) : head(o.head) { o.head = nullptr; }18 17 stack::~stack() { clear(); } 19 18 … … 22 21 clear(); 23 22 copy(o); 24 return *this;25 }26 27 stack& stack::operator= (stack&& o) {28 if ( this == &o ) return *this;29 head = o.head;30 o.head = nullptr;31 23 return *this; 32 24 } -
doc/papers/general/evaluation/cpp-vstack.hpp
r12bbb367 rf86c8e5 15 15 stack(); 16 16 stack(const stack& o); 17 stack(stack&& o);18 17 ~stack(); 19 18 stack& operator= (const stack& o); 20 stack& operator= (stack&& o);21 19 22 20 void clear(); -
doc/papers/general/evaluation/timing.dat
r12bbb367 rf86c8e5 1 1 "400 million repetitions" "C" "\\CFA{}" "\\CC{}" "\\CC{obj}" 2 "push\nint" 3002 2459 15 20 33053 "copy\nint" 2985 2057 15 21 31524 "clear\nint" 1374 827 7 1814695 "pop\nint" 1416 1221 7 17 54676 "push\npair" 4214 2752 9 46 68267 "copy\npair" 6127 2105 9 93 73308 "clear\npair" 2881 885 7 11 35649 "pop\npair" 3046 5434 783 265382 "push\nint" 3002 2459 1542 3269 3 "copy\nint" 2985 2057 1539 3083 4 "clear\nint" 1374 827 756 1469 5 "pop\nint" 1416 1221 760 5098 6 "push\npair" 4214 2752 950 6873 7 "copy\npair" 6127 2105 987 7293 8 "clear\npair" 2881 885 751 3460 9 "pop\npair" 3046 5434 822 24962 -
doc/papers/general/evaluation/timing.gp
r12bbb367 rf86c8e5 24 24 set yrange [0:10] 25 25 26 set label "2 6.5" at 7.125,10.526 set label "25.0" at 7.125,10.5 27 27 28 28 # set datafile separator ","
Note: See TracChangeset
for help on using the changeset viewer.