diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-02 08:20:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-07 18:52:23 +0800 |
commit | 184e9ae9a81df2db6381e18d3daa035d913ae341 (patch) | |
tree | 1404780c9d9772b797ff979594e7468ca382d2b6 /core/vm/jit.go | |
parent | 846f34f78b5f76233655d0cf3611706e99f2efe2 (diff) | |
download | go-tangerine-184e9ae9a81df2db6381e18d3daa035d913ae341.tar.gz go-tangerine-184e9ae9a81df2db6381e18d3daa035d913ae341.tar.zst go-tangerine-184e9ae9a81df2db6381e18d3daa035d913ae341.zip |
core, tests: reduced state copy by N calls
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
Diffstat (limited to 'core/vm/jit.go')
-rw-r--r-- | core/vm/jit.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/jit.go b/core/vm/jit.go index a77309223..c66630ae8 100644 --- a/core/vm/jit.go +++ b/core/vm/jit.go @@ -13,6 +13,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. + package vm import ( @@ -48,7 +49,7 @@ func SetJITCacheSize(size int) { programs, _ = lru.New(size) } -// GetProgram returns the program by id or nil when non-existant +// GetProgram returns the program by id or nil when non-existent func GetProgram(id common.Hash) *Program { if p, ok := programs.Get(id); ok { return p.(*Program) |