net: improve performance of net.BlockList · nodejs/node@3d7d277 · GitHub
Skip to content

Commit 3d7d277

Browse files
jasnelladuh95
authored andcommitted
net: improve performance of net.BlockList
* fix duplicate address insertion in SocketAddressBlockList * fix BlockList rule listing order to match apply * add minor bound check in BlockList * improve performance of BlockList apply * eliminating shared_ptr * check fast api path * add clear method to BlockList * general storage improvements to BlockList * use shared locks for BlockList reads * add bulk address adding to BlockList * add BlockList benchmark * add remove range/subnet to BlockList * add cidr notation parsing to BlockList * add additional apis to BlockList * add private subnet presets to BlockList Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: OpenCode/Opus PR-URL: #64974 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent e9327d1 commit 3d7d277

8 files changed

Lines changed: 2061 additions & 127 deletions

File tree

benchmark/net/net-blocklist.js

Lines changed: 146 additions & 0 deletions

doc/api/net.md

Lines changed: 169 additions & 19 deletions

0 commit comments

Comments
 (0)