Re: [go-nuts] evacuate in hashmap: where to put when migrate data from oldbucket to bucket

2018-03-19 Thread lizhiyuan66
I think i have got it, thank you all -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://gr

Re: [go-nuts] evacuate in hashmap: where to put when migrate data from oldbucket to bucket

2018-03-18 Thread lizhiyuan66
thanks for your correction ... i think i lost my mind some how. but can you tell me how the formula works? Or give me a hint that i can search -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving e

[go-nuts] evacuate in hashmap: where to put when migrate data from oldbucket to bucket

2018-03-15 Thread lizhiyuan66
when evacuate oldbucket, go will migrate the data to a new position. and i found it used X and Y as two bucket where Xi equal the old index in h.oldbuckets and Yi equal Xi plus newbit suppose the length of oldbuckets is 8 , and the hash of a key is 13 (just a example), then it will be put in t