Posted 2020-02-27Updated 2022-06-08 Jack Liu Go3 minutes read (About 470 words)Go:MapMap 要点注意事项map 是引用类型的: 内存用 make 方法来分配。new,永远用 make 来构造 map。new() 分配了一个引用对象,你会获得一个空引用的指针,相当于声明了一个未初始化的变量并且取了它的地址。当 map 增长到容量上限的时候,如果再增加新的 key-value 对,map 的大小会自动加 1。所以出于性能的考虑,对于大的 map 或者会快速扩张的 map,即使只是大概知道容量,也最好先标明。Read more
2023-08-13AI drawing ControlNet local implementation steps by stable-diffusion-webui(AI绘画ControlNet本地构建实施步骤 by stable-diffusion-webui)AI / painting / Controlnet / Drawing
2023-08-06Tribute to the great legendary philanthropist and programmer Bram Moolenaar, the original author and software maintainer of VIM(致敬伟大传奇的慈善家和程序员Bram Moolenaar,VIM最初作者和软件维护者)history-of-programing / daily