regexp: high memory use · Issue #61439 · golang/go · GitHub | 您所在的位置:網(wǎng)站首頁 › 屬馬人脾氣很暴 › regexp: high memory use · Issue #61439 · golang/go · GitHub |
6914 chars long length regex like this:"^[a-zA-Z0-9 \r\n\t`\~\!@?#\$%\^&\*\(\)_\+\-=\{\}\|\[\]\\:";'\?,./“”?....]+" If the regex add some special chars the memory will leak. the special chars like this:"▁▂▃▄▅▆▇█▉▊▋▋▌▍▎▏???▓▔■□??????????????????◆◇?????◢◣◤◥????????????????????????????????" befor add the special chars max meory 10GB with long time running. after add special chars memory increase to full until program crash only use some minutes . 1.20.5 windows computer memroy size is 32GB |
今日新聞 |
推薦新聞 |
專題文章 |
CopyRight 2018-2019 實驗室設(shè)備網(wǎng) 版權(quán)所有 |