Skip to content

Commit

Permalink
Set opt-level=0 in the live code editor.
Browse files Browse the repository at this point in the history
The old opt-level=2 setting is only accessible when calling evaluate.json directly; neither of the playpen editor's two choices match it, and Cargo defines five profiles, none of which set opt-level=2. High performance can not be critical to a remote execution service subject to internet-scale latency, so opt-level=3 does not gain us much. (On the contrary, it'll probably increase compile times!) Also, we gain overflow checks at opt-level=0. Nice.
  • Loading branch information
evujumenuk authored Sep 9, 2016
1 parent 74be17a commit 5599915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
var req = new XMLHttpRequest();
var data = JSON.stringify({
version: "beta",
optimize: "2",
optimize: "0",
code: program
});

Expand Down

0 comments on commit 5599915

Please sign in to comment.