ethereum / research

MIT License
1.81k stars 591 forks source link

optimize zpoly() #130

Closed qizhou closed 2 years ago

qizhou commented 2 years ago

Original zplot() is slow for a large number of xs because of root.insert(0,0). This optimization preallocates root so the total cost is O(n) (instead of O(n^2))

Pref numbers (len(xs) = 128))