Skip to content

Commit 1ef08c4

Browse files
avoid serializing optimized code
1 parent 601e03b commit 1ef08c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codeflash/lsp/beta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import contextlib
4-
import json
54
import os
65
from dataclasses import dataclass
76
from pathlib import Path
@@ -228,7 +227,7 @@ def perform_function_optimization(
228227
"status": "success",
229228
"message": "Optimization completed successfully",
230229
"extra": f"Speedup: {original_code_baseline.runtime / best_optimization.runtime:.2f}x faster",
231-
"optimization": json.dumps(optimized_source, indent=None),
230+
"optimization": optimized_source,
232231
}
233232

234233

0 commit comments

Comments
 (0)