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

Unnecessarily slow algorithm #14

Closed
ccpandhare opened this issue Mar 12, 2017 · 12 comments
Closed

Unnecessarily slow algorithm #14

ccpandhare opened this issue Mar 12, 2017 · 12 comments
Assignees

Comments

@ccpandhare
Copy link
Collaborator

When a step is added to the sequencer, It gets pushed into steps[], and then the code runs through ALL the steps, running the modules again and again.
I think we should change that. This is making the program unnecessarily slow.

Shouldn't we change this? What do you think, @jywarren ?

@jywarren
Copy link
Member

jywarren commented Mar 12, 2017 via email

@ccpandhare
Copy link
Collaborator Author

So is it memory vs runtime?

@jywarren
Copy link
Member

jywarren commented Mar 12, 2017 via email

@ccpandhare
Copy link
Collaborator Author

Maybe we should do so.
Yeah I guess storing the images won't be a problem after all.
I think we should create another method apart from run().

But anyways, All the steps will have to rerun when a step is removed. (I'm almost dome implementing the removeStep() function)

@jywarren
Copy link
Member

jywarren commented Mar 13, 2017 via email

@rogeredthat
Copy link

Can't we have a lower precision version for working and process the complete image only when a full-fledged render is required. This way we would be spending less memory and it would be feasible to have the output of each node stored with it.

@ccpandhare
Copy link
Collaborator Author

Could you please explain that?

@rogeredthat
Copy link

We'll, you can see this method used in majority of memory heavy software. They work on a lower resolution version during the crafting and complete all the actions on the full resolution image only when the work is final. It does not make sense to process the entire image spanning 4MPs or something when your display window is barely 500px in width or so

@ccpandhare
Copy link
Collaborator Author

This can still be thought upon!

@jywarren
Copy link
Member

jywarren commented Jun 27, 2017 via email

@ccpandhare
Copy link
Collaborator Author

Yes I totally agree. I think this can be implemented at a later stage though!

@ccpandhare ccpandhare self-assigned this Aug 22, 2017
@jywarren
Copy link
Member

jywarren commented Nov 4, 2018

I'm going to close this since we now only re-run the critical modules! If someone wants to open a new issue for "preview versions" that'd be cool too!

@jywarren jywarren closed this as completed Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants