Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar committed Oct 5, 2017
1 parent 6a1eea1 commit 5876297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/src/executive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ impl<'a, B: 'a + StateBackend> Executive<'a, B> {

let cost = builtin.cost(data);
if cost <= params.gas {
let mut builtin_out_buffer = Vec::new();
let mut builtin_out_buffer = Vec::with_capacity(output.len());
let result = {
let mut builtin_output = BytesRef::Flexible(&mut builtin_out_buffer);
builtin.execute(data, &mut builtin_output)
Expand Down

0 comments on commit 5876297

Please sign in to comment.