Skip to content

Commit 639e42e

Browse files
avoid serializing optimized code (#446)
Co-authored-by: Sarthak Agarwal <[email protected]>
1 parent 64a40d8 commit 639e42e

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)