You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, functions like into_little_endian do an allocation. This is very unfortunate for the functions that are called upon every access to wasm memory.
At the very least, we can use change definition from
pubtraitLittleEndianConvertwhereSelf:Sized{fninto_little_endian(&self,out:&mut[u8]);// Will panic if `out` of not appropriate sizefnfrom_little_endian(buffer:&[u8]) -> Result<Self,Error>;}
this will avoid allocations for into_little_endian case.
The text was updated successfully, but these errors were encountered:
pepyakin
changed the title
Optimization: Optimize value handling
Optimization: Optimize value handling operations
Jun 20, 2018
pepyakin
changed the title
Optimization: Optimize value handling operations
Optimization: Value handling operations
Jun 20, 2018
Related to #99
Depends on #98
For now, functions like
into_little_endian
do an allocation. This is very unfortunate for the functions that are called upon every access to wasm memory.At the very least, we can use change definition from
to something like this
this will avoid allocations for
into_little_endian
case.The text was updated successfully, but these errors were encountered: