-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add function to calculate dynamic default Actor memory #570
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
Open
danpoletaev
wants to merge
27
commits into
master
Choose a base branch
from
feat/calculate-default-memory-from-expression
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
19c8dd3
feat: add function to calculate dynamic default Actor memory
danpoletaev 5191978
refactor: improve preprocessing expression
danpoletaev 4eef96c
refactor: clamp result to min/max range
danpoletaev 95e11b5
refactor: clean up
danpoletaev 457f3c1
refactor: clean up
danpoletaev 662a5d7
Merge branch 'master' into feat/calculate-default-memory-from-expression
danpoletaev 5075a6c
refactor: update tsconfig.build.json
danpoletaev bd0baa6
fix: build
danpoletaev 640167e
refactor: clean up
danpoletaev 7390d1b
Merge branch 'master' into feat/calculate-default-memory-from-expression
danpoletaev 9727373
refactor: move mathjs logic to a new package
danpoletaev 2dcee65
fix: tsconfig
danpoletaev 823b188
refactor: clean up
danpoletaev 3dbb353
refactor: clean up
danpoletaev 9b43107
refactor: change tsconfig of math-utils
danpoletaev 3b62b9f
refactor: change names of functions
danpoletaev a23f386
refactor: clean up
danpoletaev 543f278
refactor: clean up
danpoletaev f0d1f54
refactor: make cache generic
danpoletaev 89543ce
fix: build
danpoletaev 805365c
refactor: clean up
danpoletaev f6bdccc
refactor: clean up
danpoletaev e6c340e
refactor: clean up
danpoletaev 5ab9baf
refactor: clean up
danpoletaev 6a202d4
refactor: clean up
danpoletaev 2ec3797
refactor: made generic cache async
danpoletaev 4fb1175
refactor: clean up
danpoletaev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "name": "@apify/actor-memory-expression", | ||
| "version": "0.0.1", | ||
| "description": "Utility to evaluate dynamic memory expressions for Apify actors.", | ||
| "main": "./dist/cjs/index.cjs", | ||
| "module": "./dist/esm/index.mjs", | ||
| "typings": "./dist/cjs/index.d.ts", | ||
| "exports": { | ||
| ".": { | ||
| "import": { | ||
| "types": "./dist/esm/index.d.mts", | ||
| "default": "./dist/esm/index.mjs" | ||
| }, | ||
| "require": { | ||
| "types": "./dist/cjs/index.d.ts", | ||
| "default": "./dist/cjs/index.cjs" | ||
| } | ||
| } | ||
| }, | ||
| "keywords": [ | ||
| "apify" | ||
| ], | ||
| "author": { | ||
| "name": "Apify", | ||
| "email": "support@apify.com", | ||
| "url": "https://apify.com" | ||
| }, | ||
| "contributors": [ | ||
| "Jan Curn <jan@apify.com>", | ||
| "Marek Trunkát <marek@apify.com>" | ||
| ], | ||
| "license": "Apache-2.0", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/apify/apify-shared-js" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/apify/apify-shared-js/issues" | ||
| }, | ||
| "homepage": "https://apify.com", | ||
| "scripts": { | ||
| "build": "npm run clean && npm run compile && npm run copy", | ||
| "clean": "rimraf ./dist", | ||
| "compile": "tsup", | ||
| "copy": "ts-node -T ../../scripts/copy.ts" | ||
| }, | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "dependencies": { | ||
| "@apify/consts": "^2.47.0", | ||
| "@apify/log": "^2.5.26", | ||
| "mathjs": "^15.1.0" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './memory_calculator'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.