Why doesn't parfeval(@splitapply) improve splitapply's performance?
조회 수: 5 (최근 30일)
이전 댓글 표시
I want to readtable many html-files to extract tables. I wrote a function extract_sheet to do just that. I had used parfor to perform this task, and it runs decently fast. Then it occurs to me that those html-files can be grouped according to their foder and filename segments. So, I try splitapply(extract_sheet, input variables, groupNumber), and it works. Then I want to see if parfeval would improve the speed. I do something like parfeval(@splitapply, extract_sheet, input variables, groupNumber.)
For a small testing file list, both methods spend almost the same amount of elapsed time, around 27.5 +/- .1 seconds. My question is why parfeval doesn't improve the performance?
댓글 수: 0
채택된 답변
Matt J
2023년 8월 31일
편집: Matt J
2023년 8월 31일
It probably means that Matlab's internal parallellization already does what parfeval does.
댓글 수: 6
Sam Marshalik
2023년 9월 5일
편집: Sam Marshalik
2023년 9월 5일
@Matt J: You bring up a good point that the doc page is lacking information on this topic. I put in an enhancement request to improve that. In the meantime, I would suggest to call our Technical Support - they can investigate this further and reach out to the relevant Dev team.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Performance and Memory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!