func NewWasmer(dataDir string, supportedFeatures string, cacheSize uint64) (*Wasmer, error) {
	cache, err := api.InitCache(dataDir, supportedFeatures, cacheSize)
	if err != nil {
		return nil, err
	}
	return &Wasmer{cache: cache}, nil
}
// NewWasmer creates an new binding, with the given dataDir where
// it can store raw wasm and the pre-compile cache.
// cacheSize sets the size of an optional in-memory LRU cache for prepared VMs.
// They allow popular contracts to be executed very rapidly (no loading overhead),
// but require ~32-64MB each in memory usage.
NewWasmer creates an new binding, with the given dataDir where
it can store raw wasm and the pre-compile cache.
cacheSize sets the size of an optional in-memory LRU cache for prepared VMs.
They allow popular contracts to be executed very rapidly (no loading overhead),
but require ~32-64MB each in memory usage.
// NewWasmer creates an new binding with the given dataDir where // it can store raw wasm and the pre - compile cache . // cacheSize sets the size of an optional in - memory LRU cache for prepared VMs . // They allow popular contracts to be executed very rapidly ( no loading overhead ) // but require ~32 - 64MB each in memory usage .
func NewWasmer(dataDir string, supportedFeatures string, cacheSize uint64) (*Wasmer, error) {
	cache, err := api.InitCache(dataDir, supportedFeatures, cacheSize)
	if err != nil {
		return nil, err
	}
	return &Wasmer{cache: cache}, nil
}
func NewWasmer ( dataDir string , supportedFeatures string , cacheSize uint64 ) ( * Wasmer , error ) { cache , err := api . InitCache ( dataDir , supportedFeatures , cacheSize ) if err != nil { return nil , err } return & Wasmer { cache : cache } , nil }
NewWasmer creates an new binding, with the given dataDir where
it can store raw wasm and the pre-compile cache.
NewWasmer creates an new binding with the given dataDir where it can store raw wasm and the pre - compile cache .