优化性能:使用c或者rust重写ecc计算模块 #29

Closed
opened 2024-06-26 15:03:09 +08:00 by sangge · 5 comments
Owner
No description provided.
sangge added this to the 挖个坑,有空重构一下代码 project 2024-06-26 15:03:09 +08:00
Author
Owner

也可以尝试使用pypy,但是需要测试兼容性

也可以尝试使用pypy,但是需要测试兼容性
Author
Owner

在ecc_rs中实现,但是速度不理想。pypy好像跟gmssl不兼容?

在ecc_rs中实现,但是速度不理想。pypy好像跟gmssl不兼容?
Author
Owner

6c240b1237
ecc_rs中实现,速度有提升

6c240b1237e69a019d455a6acc04217ec5fa9161 ecc_rs中实现,速度有提升
Author
Owner

可以尝试用uint取代biguint。uint是固定长度,在栈上分配。biguint是堆上分配,创建销毁都有性能损耗。

可以尝试用uint取代biguint。uint是固定长度,在栈上分配。biguint是堆上分配,创建销毁都有性能损耗。
Author
Owner

迁移到eccrs中sangge/ecc_rs#1

迁移到eccrs中https://git.mamahaha.work/sangge/ecc_rs/issues/1
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sangge/tpre-python#29
No description provided.