Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Function calls slowly on laptop but fast on PC.

조회 수: 1 (최근 30일)
Jon Smith
Jon Smith 2015년 11월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I have a program that calls a function within a while loop. When the program is run on my desktop PC (Windows 10, i7 4790k) the program runs quickly and smoothly. However when the program is run on my laptop (Windows 10, i7-5500U) the program takes approximately 1.5 seconds to call the function.
Any help is very kindly appreciated and I am more than willing to answer any questions.
Thank you!

답변 (1개)

John D'Errico
John D'Errico 2015년 11월 17일
This cannot be intelligently answered. There are lots of reasons why this might be. Different machines have different amounts of RAM, different ways they connect to necessary drives. Worse, you have not even given us a hint as to the actual code! The crystal ball is so cloudy.
So YOU need to spend some time with the profiler tool on this code. Run it on both machines to test your code. See where the bottleneck is. Then look at the code. What is taking the time? Why is it taking time?

Community Treasure Hunt

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

Start Hunting!

Translated by