Maddogmaycry
Maddogmaycry
@tezc where can i get load_factor of current array? Or do i see in a wrong direction? =) >So, you want it shrink if many keys are deleted? > ```...
> > Yea, i want to a litle bit optimising an array after that, to speed up "foreach" :) > > Are you sure this is a bottleneck? I try...
@tezc Hello! No any news?
@tezc Hello. UPD. Ohh.. i found the problem.. i have to use const char* ptr to put some values and keys in to hash, but then i have a problem...
@tezc UPD. Ohh.. i found the problem.. i have to use const char* ptr to put some values and keys in to hash, but then i have a problem yet...
UPD. My understanding to C is absolute bad. What i got. ```c const char **ptr[1024]={0}; char msg[128]; usr_input(msg,128); ptr[i] = (char*)malloc(strlen(msg)+1); strcpy(ptr[i],msg); sc_map_put_64s(&map, i, ptr[i]); ``` and when i delete...
@tezc Thx for answer above, it's works like a charm! Now I have infinite dark power in my hands (offscreen evil laughter). But one more question. I need function that...
@tezc Hello! 1 - Pls, how can i break foreach? ```c sc_map_foreach(&port_list, key, val) { break; } ``` did'nt works. 2 - it is possable somehow to get first element...
@tezc Seems to works good. ```c #define sc_map_foreach(map, K, V) \ for (int64_t __i = -1, __b = 0; !__b && __i < (map)->cap; __i++) \ for ((V) = (map)->mem[__i].value,...
@jcyuan hello jcyuan, any news about this bug? I can't use dragonebones character in next scene too. :(