Skip to content

Conversation

@BielStela
Copy link

…e() to xrange(). updated gitignore

@OriolLopezMassaguer
Copy link

OriolLopezMassaguer commented Sep 7, 2017 via email

np.save(f,self.autoscale)

for a in range(self.Am):
for a in xrange(self.Am):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xrange is a generator while range makes a lists and allocates it in memory. xrange is always faster ( more noticeable with big numers)
screenshot from 2017-09-08 14-35-01

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.

2 participants