RE: IRC highlights!
05-06-2013, 06:19 PM
Quote:12:15 PickYerPoison omg i can make this size() function way faster by keeping track of when elements are inserted and removed
12:15 PickYerPoison yesssss
12:16 Red709 ...I...
12:16 MrGuy that ganja gremlin should have shut up
12:16 PickYerPoison bwahaha
12:16 PickYerPoison 10 lines? try ONE
12:17 Jacquerel that's good because I want to insert and remove as quickly as possible
Quote:12:17 PickYerPoison snrk
12:18 PickYerPoison well i intend to make this thing resize itself on the fly
Quote:12:18 Sanzh i'd resize your function ;)
12:18 PickYerPoison int m_elements tells me how many elements are in the list tho
12:18 WHIMBREL no sanzh no
12:18 PickYerPoison which is how i'll tell when to resize it
12:18 Jacquerel how big is it though? is it an int or a long
12:18 Timujina what
12:18 PickYerPoison i /could/ make it a long
12:18 PickYerPoison but that seems overboard
12:18 Timujina why do ou have two sizes?
12:18 PickYerPoison one is the /size/
12:19 PickYerPoison the other is the number of elements
12:19 Timujina oh
12:19 PickYerPoison it's a hash table
12:19 PickYerPoison so some parts are empty
12:19 Timujina oh that makes sense
12:19 Jacquerel you wouldn't class your size as a long?