Skip to content

Conversation

mojixcoder
Copy link

@mojixcoder mojixcoder commented Apr 29, 2023

You use int and it is converted to int64 in most of the machines which requires a lot RAM.
I changed it to int32 and here are the results.

Before: ~10.5s.

Now: ~2.8s in 4 runs on my local.

I didn't change the algorithm at all.

P.S. it is also possible to change it to uint32.

@hamidreza01
Copy link
Contributor

Good job 👍

@ali77gh ali77gh merged commit f15e2a1 into ali77gh:master Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants