Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gitnexus/src/core/ingestion/call-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const processCalls = async (
// Cache Miss: Re-parse
// Use larger bufferSize for files > 32KB
try {
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 256 });
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 1024 * 2 });
} catch (parseError) {
// Skip files that can't be parsed
continue;
Expand Down
2 changes: 1 addition & 1 deletion gitnexus/src/core/ingestion/heritage-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const processHeritage = async (
if (!tree) {
// Use larger bufferSize for files > 32KB
try {
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 256 });
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 1024 * 2 });
} catch (parseError) {
// Skip files that can't be parsed
continue;
Expand Down
2 changes: 1 addition & 1 deletion gitnexus/src/core/ingestion/import-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ export const processImports = async (

if (!tree) {
try {
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 256 });
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 1024 * 2 });
} catch (parseError) {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion gitnexus/src/core/ingestion/parsing-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const processParsingSequential = async (

let tree;
try {
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 256 });
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 1024 * 2 });
} catch (parseError) {
console.warn(`Skipping unparseable file: ${file.path}`);
continue;
Expand Down
2 changes: 1 addition & 1 deletion gitnexus/src/core/ingestion/workers/parse-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ const processFileGroup = (

let tree;
try {
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 256 });
tree = parser.parse(file.content, undefined, { bufferSize: 1024 * 1024 * 2 });
} catch {
continue;
}
Expand Down