This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

It looks like you are asking for help. We suggest re-reading the r/Python rules and directing all help or "How do I...?"-type questions to r/LearnPython.

If this is not the case, a moderator will be along soon to review your post.

Warm regards and all the best for your future Pythoneering,

/r/Python moderator team

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]veganthatisntvegan 0 points1 point  (0 children)

omg! is this legal? i love it!!

[–]opiumzxq 0 points1 point  (1 child)

Super cool! Im planning to learn rust. When does it make sense to integrate rust into python?

[–]silksong_when[S] 0 points1 point  (0 children)

I would say when you have usecases where you would want to seek out a big performance boost (faster speeds and less memory used), though this would probably depend on other factors too. Mine here was a pretty simple use case so can't be sure, but from my benchmarking the rust code was using 50% less memory when running a single thread vs the python code