Remix-ide: how to set “runs” for optimizer at a value different from the default 200?
As you may know, the default solc optimizer “runs” value is 200.
Apparently remix does not permit to change this value.
Has someone any idea of how to change it?
remix
add a comment |
As you may know, the default solc optimizer “runs” value is 200.
Apparently remix does not permit to change this value.
Has someone any idea of how to change it?
remix
add a comment |
As you may know, the default solc optimizer “runs” value is 200.
Apparently remix does not permit to change this value.
Has someone any idea of how to change it?
remix
As you may know, the default solc optimizer “runs” value is 200.
Apparently remix does not permit to change this value.
Has someone any idea of how to change it?
remix
remix
asked 2 hours ago
Rick Park
731111
731111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Someone might have a better idea, but you could serve Remix locally on your own machine by following the instructions for building here and here.
Once you've understood the build flow, you can then tweak the runs
value in the compiler-input.js
file:
module.exports = (sources, opts) => {
return JSON.stringify({
language: 'Solidity',
sources: sources,
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
},
....
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could trygit clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)
– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "642"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f64662%2fremix-ide-how-to-set-runs-for-optimizer-at-a-value-different-from-the-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Someone might have a better idea, but you could serve Remix locally on your own machine by following the instructions for building here and here.
Once you've understood the build flow, you can then tweak the runs
value in the compiler-input.js
file:
module.exports = (sources, opts) => {
return JSON.stringify({
language: 'Solidity',
sources: sources,
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
},
....
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could trygit clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)
– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
add a comment |
Someone might have a better idea, but you could serve Remix locally on your own machine by following the instructions for building here and here.
Once you've understood the build flow, you can then tweak the runs
value in the compiler-input.js
file:
module.exports = (sources, opts) => {
return JSON.stringify({
language: 'Solidity',
sources: sources,
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
},
....
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could trygit clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)
– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
add a comment |
Someone might have a better idea, but you could serve Remix locally on your own machine by following the instructions for building here and here.
Once you've understood the build flow, you can then tweak the runs
value in the compiler-input.js
file:
module.exports = (sources, opts) => {
return JSON.stringify({
language: 'Solidity',
sources: sources,
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
},
....
Someone might have a better idea, but you could serve Remix locally on your own machine by following the instructions for building here and here.
Once you've understood the build flow, you can then tweak the runs
value in the compiler-input.js
file:
module.exports = (sources, opts) => {
return JSON.stringify({
language: 'Solidity',
sources: sources,
settings: {
optimizer: {
enabled: opts.optimize === true || opts.optimize === 1,
runs: 200
},
....
answered 1 hour ago
Richard Horrocks
21.2k94499
21.2k94499
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could trygit clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)
– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
add a comment |
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could trygit clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)
– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
2
2
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
This is a brilliant idea. It is not applicable in this exact moment because the current version, 0.7.5, suffers from a bug in remixd interface that, for the moment, requires to use the online version. But it is brilliant!
– Rick Park
1 hour ago
Thanks for pointing out the bug in the current version :-) You could try
git clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)– Richard Horrocks
11 mins ago
Thanks for pointing out the bug in the current version :-) You could try
git clone
-ing a version from before the bug was introduced, but you'd need to work out which commit introduced the bug. This might, a) be more hassle than it's worth, and b) remove some other functionalities that you need for your testing. Hopefully the bug will be resolved in the near future :-)– Richard Horrocks
11 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
Indeed dev team promised to fix this soon...
– Rick Park
8 mins ago
add a comment |
Thanks for contributing an answer to Ethereum Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f64662%2fremix-ide-how-to-set-runs-for-optimizer-at-a-value-different-from-the-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown