SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[rust-compiler] Eliminate double AST serialization with RawValue

Change CompileResult.ast from Option<serde_json::Value> to
Option<Box<RawValue>>, serializing the AST directly to a JSON string
in compile_program rather than going through an intermediate Value.
This avoids a full extra serialization pass (File→Value→String becomes
File→String) when the NAPI layer serializes the final result.
J
Joe Savona committed
4841cac8d4966c1af7e33d9d32d8d039e03a9a86
Parent: 7ba4e22