Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix torus function torus_verts performance. #4958

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

satabol
Copy link
Collaborator

@satabol satabol commented Jul 22, 2023

Out some calculations from inner for.

image

Sverchok master, Windows 11, Blender 3.6.1

(manual measurement)
image

Performance up 1.75x.

@Durman
Copy link
Collaborator

Durman commented Jul 24, 2023

Is 1.75 boost of the particular loop or the whole work of the node?

@satabol
Copy link
Collaborator Author

satabol commented Jul 24, 2023

1.75 is for “for”. It is hard to compute so many sin, cos, and power. I try calc numpy. It can be speed up 1.5x. But it is very hard to read that code.

@satabol satabol merged commit 93ebe56 into master Jul 24, 2023
@satabol satabol deleted the fix_torus_mk2_performance_v001 branch July 24, 2023 07:04
@Durman
Copy link
Collaborator

Durman commented Jul 24, 2023

Yes, numpy is a functional programming. It is something to which someone have to get used. By the way Sverchok itself also is sort of functional programming. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants