greptilian logo

IRC log for #friendlyjava, 2019-09-02

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:31 Jantz joined ##friendlyjava
06:04 nanoz joined ##friendlyjava
06:33 Jantz joined ##friendlyjava
09:04 Jantz joined ##friendlyjava
09:06 Jantz joined ##friendlyjava
09:08 Jantz joined ##friendlyjava
09:30 Jantz_ joined ##friendlyjava
14:12 nanoz joined ##friendlyjava
14:21 nanoz pdurbin, why does arraylist do array re-sizing twice * N
14:21 nanoz why the order is twice?
14:22 nanoz as i have understood , if i increase the memory every time +1 , the runtime cost would be N^2/2
14:24 nanoz aka N^2
14:24 nanoz if we do twice the cost is N
14:24 nanoz but why twice?
14:43 pdurbin How do you know how arraylist works? What are you reading?
15:33 nanoz there are few article on it
15:50 aditsu why not twice?
15:59 nanoz twice is fine , why not thrice
16:00 aditsu it may waste too much memory
16:01 aditsu a factor of 2 has a reasonable balance between unused memory and number of reallocations
16:02 aditsu but something like 3/2 or 4/3 is probably fine too
16:22 nanoz for shirinking they only do for every one quarter
17:12 nanoz joined ##friendlyjava
20:17 nanozz joined ##friendlyjava
22:18 Jantz joined ##friendlyjava
23:11 Jantz please tell me this is wrong
23:14 Jantz https://ibb.co/8PLH330
23:14 aditsu this is wrong
23:18 Jantz i thought so aditsu shouldnt it be  1st statement a is set to 3, second b is set to 3, third c is set to 5,and d i duno??
23:19 Jantz is d even compatible?
23:19 aditsu yeah
23:20 Jantz its a very bad website no good for beginners like me
23:20 aditsu then don't use it
23:21 Jantz yes i think i will stick to oracles

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode