Skip to content
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

Reduce memory usage by 3x #213

Merged
merged 26 commits into from
Apr 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
656fe08
make the context of helpers local
brunocodutra Apr 2, 2018
cd99c1d
promisify helpers.General.source
brunocodutra Apr 2, 2018
445c8d0
promisify createPlatform
brunocodutra Apr 2, 2018
3e1dbfe
promisify create
brunocodutra Apr 2, 2018
2020b09
promisify helpers.Files.create
brunocodutra Apr 2, 2018
8270f57
promisify helpers.Images.read
brunocodutra Apr 2, 2018
fe382ab
promisify helpers.Images.resize
brunocodutra Apr 2, 2018
1527546
promisify helpers.Images.create
brunocodutra Apr 2, 2018
6f019ee
promisify helpers.Images.composite
brunocodutra Apr 2, 2018
afd9e23
promisify helpers.Images.getBuffer
brunocodutra Apr 2, 2018
48bf7fc
promisify helpers.Images.nearest
brunocodutra Apr 2, 2018
f394875
promisify createFavicon
brunocodutra Apr 2, 2018
76bc2be
promisify createFavicons
brunocodutra Apr 2, 2018
9489b22
promisify createFiles
brunocodutra Apr 2, 2018
708df8a
promisify helpers.HTML.parse
brunocodutra Apr 2, 2018
7b4d680
promisify createHTML
brunocodutra Apr 2, 2018
c85c631
remove undocumented and untested feature
brunocodutra Apr 3, 2018
483e876
take advantage of the promisified functions
brunocodutra Apr 2, 2018
3c760be
setup babel to add polyfills as needed
brunocodutra Apr 3, 2018
b317808
fix error message
brunocodutra Apr 3, 2018
f6fd5d6
inline Images.read into Images.nearest
brunocodutra Apr 3, 2018
97eea4d
inline Images.getBuffer into Images.composite
brunocodutra Apr 3, 2018
af23974
only read mask.png and overlay.png once from file
brunocodutra Apr 4, 2018
76952e9
fix failure tests on windows
brunocodutra Apr 4, 2018
68ab75d
create platforms serially for 3x less memory usage
brunocodutra Apr 4, 2018
a73e1f4
merge Images.nearest and Images.resize into Images.render
brunocodutra Apr 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"targets": {
"node": "4"
},
"useBuiltIns": "usage",
"exclude": [
"transform-regenerator"
]
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],

"parserOptions": {
"ecmaVersion": 6
"ecmaVersion": 8
},

"env": {
Expand Down
21 changes: 12 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
},
"homepage": "https://github.com/haydenbleasel/favicons",
"dependencies": {
"async": "^2.6.0",
"cheerio": "^0.19.0",
"clone": "^1.0.4",
"colors": "^1.2.1",
Expand All @@ -39,7 +38,6 @@
"jimp": "^0.2.28",
"jsontoxml": "^1.0.0",
"merge-defaults": "^0.2.1",
"mkdirp": "^0.5.1",
"require-directory": "^2.1.1",
"svg2png": "~3.0.1",
"through2": "^2.0.3",
Expand All @@ -51,6 +49,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.42",
"@babel/polyfill": "^7.0.0-beta.42",
"@babel/preset-env": "^7.0.0-beta.42",
"@babel/register": "^7.0.0-beta.42",
"ava": "^1.0.0-beta.3",
Expand Down
Loading