You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@milagro.apache.org by GitBox <gi...@apache.org> on 2020/05/04 22:48:01 UTC

[GitHub] [incubator-milagro-crypto-rust] kirk-baird opened a new issue #24: Caching Decoded Objects

kirk-baird opened a new issue #24:
URL: https://github.com/apache/incubator-milagro-crypto-rust/issues/24


   # What is the Issue
   
   Many results are converted from raw data (i.e. ints / bytes) many times. These results could be cached to reduce rework.
   
   These results can be cached as:
   * Big
   * DBig
   * FPx
   * ECPx
   
   Common items being decoded many times:
   * Elliptic Curve Generators
   * Field Modulus
   * Curve Order
   * Curve Equation Parameters (a, b)
   
   # What can be done
   
   These can be cached using `lazy_static` which will convert into the required rust types only when they are first called and then cached for future use.
   
   # Additional Comments
   
   It would also be good to change the existing use of `hex` to be stored as `Chunk`s instead.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@milagro.apache.org
For additional commands, e-mail: issues-help@milagro.apache.org