MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / largeNoteBody

Function largeNoteBody

tooling/scripts/perf-web-runtime.mjs:190–199  ·  view source on GitHub ↗
(lines, id)

Source from the content-addressed store, hash-verified

188}
189
190function largeNoteBody(lines, id) {
191 const blocks = []
192 for (let line = 0; line < lines; line += 1) {
193 const section = line % 40
194 blocks.push(
195 `- Large note ${id} line ${formatIndex(line)} section-${section}: ${'fast editor hydration '.repeat(6)}#large-note #section-${section}`
196 )
197 }
198 return `\n## Large note stress section\n\n${blocks.join('\n')}\n`
199}
200
201async function writeFilesInBatches(files, batchSize = 96) {
202 for (let index = 0; index < files.length; index += batchSize) {

Callers 1

seedVaultFunction · 0.70

Calls 1

formatIndexFunction · 0.70

Tested by

no test coverage detected