Skip to main content

Timeline for Array from file

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Sep 7, 2014 at 17:46 history tweeted twitter.com/#!/StackCodeReview/status/508672643856605184
Sep 7, 2014 at 17:32 answer added Martin R timeline score: 5
Sep 7, 2014 at 17:30 vote accept Michael
Dec 2, 2014 at 2:01
Sep 7, 2014 at 17:21 history edited Jamal CC BY-SA 3.0
added 5 characters in body; edited title
Sep 7, 2014 at 17:16 answer added nhgrif timeline score: 5
Sep 7, 2014 at 17:00 comment added Michael @sha, I am trying to now...not sure how to use time profiler... But I assume it is because the arrays are so large (especially that one with 9000 entries) it takes time for the for loop to cycle through until it finds the right entry.
Sep 7, 2014 at 16:53 comment added sha Have you tried running this code in profiler to see where majority of the time is spent?
Sep 7, 2014 at 16:52 comment added Michael No, I'm reading it from the entire array each time with a for loop. I read the file once on viewDidLoad.
Sep 7, 2014 at 16:49 comment added nhgrif You're reading the whole thing fresh from file every time the button is pressed?
Sep 7, 2014 at 16:48 history edited nhgrif CC BY-SA 3.0
added 68 characters in body
Sep 7, 2014 at 16:46 history edited Michael CC BY-SA 3.0
added sample from data files
Sep 7, 2014 at 16:42 review First posts
Sep 7, 2014 at 16:51
Sep 7, 2014 at 16:40 history asked Michael CC BY-SA 3.0