-
Notifications
You must be signed in to change notification settings - Fork 43
Avoid large memory allocations when doing forEach in case netmask is large (e.g. /8) #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1,29 +1,34 @@ | |||
{ | |||
"author": "Olivier Poitrey <rs@dailymotion.com>", | |||
"name": "netmask", | |||
"name": "@dschenkelman/netmask", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't override account.
"netmask", | ||
"subnet", | ||
"ipcalc" | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change format.
@@ -0,0 +1,125 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't commit package lock.
long=ip2long(@first) | ||
lastLong=ip2long(@last) | ||
index=0 | ||
while long<=lastLong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add spaces around operators.
Next time you can just force push on the same branch, it will update the PR. |
Yup I know :), thanks. I just have a different project pointing to that tag/code so I wanted to keep that until this module is updated. |
…