cds-snc / cds-snc/platform-forms-client

csvWriter Refactor

Open
#6,334 0 comments 0 reactions 0 assignees View on GitHub
tech debt
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 8h
Merged PRs (30d)
85

Description

Refactor the `csvWriter` for responses-beta for optimization and performance.

### Current behaviour:
For each line to be written the file is:
1. opened
2. file content is read into memory
3. file content is searched through for specific value
4. line in appended
5. file is closed

### Ideal beahviour:
Data in batched and the file is opened and read into memory only once per response creation flow.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.