Skip to content

Commit

Permalink
monomorphic comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO committed Aug 15, 2024
1 parent dabc6ad commit 2094e2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typescript/core/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ function parseDataEnd(reader: Reader, recordLength: number): TypedMcapRecord {
};
}

// mono(morphic) parseMessage, used in the hot path
export function monoParseMessage(reader: Reader): TypedMcapRecord | undefined {
const RECORD_HEADER_SIZE = 1 /*opcode*/ + 8; /*record content length*/
if (reader.bytesRemaining() < RECORD_HEADER_SIZE) {
Expand Down

0 comments on commit 2094e2f

Please sign in to comment.