Skip to content

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

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

josecorella
Copy link
Contributor

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:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

seebees
seebees previously approved these changes Jun 20, 2022
Copy link
Contributor

@seebees seebees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josecorella josecorella marked this pull request as ready for review June 20, 2022 15:54
@josecorella josecorella requested a review from a team as a code owner June 20, 2022 15:54
Copy link
Contributor

@texastony texastony left a 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

* @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) {
Copy link
Contributor

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:

Suggested change
export async function kmsEncryptStream(filename:string, framesize?:number) {
export async function kmsEncryptStream(filename: string, framesize?: number) {

console.log("Listening on port 3000");
})

async function readFile(filename:string, framesize?:number) {
Copy link
Contributor

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:

Suggested change
async function readFile(filename:string, framesize?:number) {
async function readFile(filename: string, framesize?: number) {

Comment on lines 5 to 11
/* 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. */
Copy link
Contributor

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...

Copy link
Contributor

@texastony texastony left a 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

@josecorella josecorella merged commit c9cd299 into aws:master Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants