D 2012-09-13T16:54:21
J icomment The\s"lockt"\shas\sbeen\sremoved.\nThe\s"freeCt"\sis\sused\sin\sthe\scode\sas\sthe\stop\sof\sfree\scontainer\slist\s\n(similar\sto\sthe\slist\sof\spre-allocated\sTcl\sObjs)\sand\scannot\sbe\sremoved.\n\nThe\sNUMSPBUCKETS\sis\sa\scount\sof\sslots\scontaining\sshared\sarrays.\nInstead\sof\slocking\sthe\sarray\sduring\saccess,\sthe\sslot\s(bucket)\scontaining\s\nthe\sarray\sis\slocked.\sArrays\sare\sdistributed\samong\sbuckets\susing\sa\ssimple\nhash\sthat\smaps\sthe\sarray\sname\sinto\sone\sof\sthe\sbuckets.\s\nThe\swhole\slogic\swas\s"borrowed"\sfrom\sAOL/Naviserver.\nSetting\sthe\svalue\slarger\swill\sreduce\slocking\scontention\sfor\sthe\sbucket\nand\sthus\sallow\smore\sconcurrency.\sUnfortunately\swe\sdo\snot\shave\sany\nmetrics\sbuilt\sinto\sthe\scode\sthat\swould\sallow\slocking\sintrospection\sand\nfinding\s"hot"\sbuckets.\sThis\swould\sbe\snecessary\sin\sorder\sto\sexperiment\nwith\sthe\snumber\sof\sbuckets.\sThe\svalue\sof\s32\sis\sfound\sto\sbe\s"good\senough"\nfor\smost\sof\sthe\sapplications.\s\s\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 3563391fffffffffffffffffffffffffffffffff
U vasiljevic
Z d864fce01a7e7e0301d853c1a2d173a0