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

Long Evaluation Time #8

Open
ryukau opened this issue Aug 4, 2020 · 6 comments
Open

Long Evaluation Time #8

ryukau opened this issue Aug 4, 2020 · 6 comments
Labels
question Further information is requested

Comments

@ryukau
Copy link

ryukau commented Aug 4, 2020

Evaluation stage of Faust takes more than 120 seconds on my environment. This triggers Alarm clock and compilation is terminated when using faustbench. Probably there's workaround, however it's nice to reduce evaluation time if possible.

Full output of faust2jaqt. end evaluation indicates 141 seconds.

$ faust2jaqt -t 0 -time -midi -nvoices 1 DigiDrie.dsp

start parser

end parser (duration : 0.18698)

start evaluation

end evaluation (duration : 141.073)

start propagation

end propagation (duration : 6.30136)

start generateCode

	start prepare

		start deBruijn2Sym

		end deBruijn2Sym (duration : 0.136454)

		start L1 typeAnnotation

		end L1 typeAnnotation (duration : 0.172746)

		start Cast and Promotion

		end Cast and Promotion (duration : 0.0653901)

		start simplification

		end simplification (duration : 0.279493)

		start Constant propagation

		end Constant propagation (duration : 0.0178809)

		start L5 typeAnnotation

		end L5 typeAnnotation (duration : 0.101538)

	end prepare (duration : 5.85807)

	start compileMultiSignal

		start prepare2

		end prepare2 (duration : 0.00033021)

	end compileMultiSignal (duration : 0.611087)

end generateCode (duration : 8.27195)
./DigiDrie;
@magnetophon
Copy link
Owner

I know, and I'm working on it.

I just added build instructions with the workaround to the readme.

@magnetophon
Copy link
Owner

For tests, you can dramatically speed up the compile by changing:

nrEnvelopes = 2;
nrLFOs      = nrEnvelopes;
nrMacros    = nrEnvelopes * 1;

The evaluation time goes from +/- 300s to +/- 3s

@ryukau
Copy link
Author

ryukau commented Aug 8, 2020

Thanks for the information. This helps a lot.

@magnetophon
Copy link
Owner

In one of the last commits, the evaluation time dropped from 80 seconds to 40.

No idea why.

Did that happen for you as well?

@ryukau
Copy link
Author

ryukau commented Aug 14, 2020

Evaluation time of df17d33 (latest modification to Faust codes) and b77b5b3 (merge of 3D cross-fade) are same on my environment.

@magnetophon
Copy link
Owner

¯\_(ツ)_/¯

@ryukau ryukau added the question Further information is requested label Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants