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
11 changes: 5 additions & 6 deletions .github/workflows/cross-repo-python-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ jobs:
test_command: xvfb-run --auto-servernum pytest tests/shared_contracts/ --timeout=60 --timeout-method=thread -v --tb=short
env_name: REQUIRE_REAL_TOOLS_REPO
sparse_checkout: |
chat
contracts.py
python/src/utils
shared
sidekick
src/shared/python
src/chat
src/contracts.py
src/python/src/utils
src/shared
src/sidekick
tests/shared_contracts
tests/support

Expand Down
7 changes: 5 additions & 2 deletions src/p1am_control_system/frontend/src/lib/explorer/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,11 @@ export function parseCsv(text: string): CsvTable {
const colCount = header.length;

// Materialize each source column's raw cells (padding short rows).
// ⚡ Bolt Optimization: Replace dataRows.map() per column with a single-pass loop
const rawColumns: string[][] = Array.from({ length: colCount }, () => new Array(dataRows.length));
// ⚡ Bolt Optimization: Avoid Array.from({ length }) overhead by using new Array + for-loop
const rawColumns: string[][] = new Array(colCount);
for (let c = 0; c < colCount; c += 1) {
rawColumns[c] = new Array(dataRows.length);
}
for (let r = 0; r < dataRows.length; r += 1) {
const row = dataRows[r];
for (let c = 0; c < colCount; c += 1) {
Expand Down
Loading