필터 지우기
필터 지우기

Are livescripts meaningfully slower than scripts?

조회 수: 16 (최근 30일)
Rowan Humphreys
Rowan Humphreys 2023년 3월 15일
댓글: Rowan Humphreys 2023년 3월 15일
Hi, I am considering migrating the code for my thesis to livescripts so I can make rich annotations.
The code involves training neural nets, lots of matrix algebra, and doing convolutions. If I switch will my code be much slower? There is a lot of scary answers that say things like "livescripts can be 50000 times slower".

채택된 답변

Anurag Ojha
Anurag Ojha 2023년 3월 15일
Hi Rowan,
Livescripts are not slower than scripts. Executions of functions is not affected whether you execute the function in a livescript or script. The elapsed time to run is comparable whether you run a livescript or .m file.
For more information, you can follow this MATLAB Answer . Here the elapsed time is compared after running the same file as on livescript and script.
Hope it helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by