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

Function largeNoteBody

tooling/scripts/perf-desktop-runtime.mjs:187–196  ·  view source on GitHub ↗
(lines, id)

Source from the content-addressed store, hash-verified

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