-
Notifications
You must be signed in to change notification settings - Fork 63
chore: add memory profiling in streams examples #946
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
bac7d27
to
e8b86e5
Compare
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.
LGTM
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.
Need's a little clean up, but other than that, LGTM
stream_mem_stress_test/memory.ts
Outdated
* @param filename string of file name you wish to encrypt | ||
* @param framesize optional parameter to determine frame size; default is 4096 bytes | ||
*/ | ||
export async function kmsEncryptStream(filename:string, framesize?:number) { |
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.
Nit: There should be a space b/w the variable and its type:
export async function kmsEncryptStream(filename:string, framesize?:number) { | |
export async function kmsEncryptStream(filename: string, framesize?: number) { |
stream_mem_stress_test/index.ts
Outdated
console.log("Listening on port 3000"); | ||
}) | ||
|
||
async function readFile(filename:string, framesize?:number) { |
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.
Nit: Space b/w variable and it's type in signatures:
async function readFile(filename:string, framesize?:number) { | |
async function readFile(filename: string, framesize?: number) { |
stream_mem_stress_test/tsconfig.json
Outdated
/* Projects */ | ||
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ | ||
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ | ||
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ | ||
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ | ||
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ | ||
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
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.
Style: Let's get rid off all this commented out stuff...
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.
I really like your tsconfig.
Very clean
Description of changes:
Adds a directory with instructions on how to run some memory profiling examples when working with streams.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Check any applicable: