Skip to content

Commit

Permalink
perf(core): use const enum for HttpStatus
Browse files Browse the repository at this point in the history
`const enum`s are inlined at compile-time in TypeScript, while regular `enum`s use array and object lookups.  This should provide minor performance and size improvements
  • Loading branch information
vegerot committed Apr 26, 2021
1 parent a55738b commit 5c7673a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/enums/http-status.enum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum HttpStatus {
export const enum HttpStatus {
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
Expand Down

0 comments on commit 5c7673a

Please sign in to comment.