madsensi created page: home authored by Joakim Gregersen Quach's avatar Joakim Gregersen Quach
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
**Group members participating:** Joakim Gregersen Quach, Simon Møller Christensen, Simon Hammerholt Madsen **Group members participating:** Joakim Gregersen Quach, Simon Møller Christensen, Simon Hammerholt Madsen
**Activity duration:** ?? hours **Activity duration:** 3.5 hours
## Goal ## Goal
To build a LEGO-car and equip it with a light-sensor, to make it follow a line, as per the instructions. To build a LEGO-car and equip it with a light-sensor, to make it follow a line, as per the instructions.
...@@ -90,9 +90,7 @@ We found the interval between the measurements of black and white, to have a lar ...@@ -90,9 +90,7 @@ We found the interval between the measurements of black and white, to have a lar
*In this exercise compare the drawString method using variables and using the strings directly.* *In this exercise compare the drawString method using variables and using the strings directly.*
GRAF ![HeapTest](http://gitlab.au.dk/uploads/madsensi/optimus_crime-legolab/f006f54b5e/HeapTest.JPG)
GRAF
As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly. As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly.
... ...
......