Skip to content

important update for new release#108

Merged
gaow merged 1 commit intoStatFunGen:mainfrom
xueweic:main
Sep 9, 2025
Merged

important update for new release#108
gaow merged 1 commit intoStatFunGen:mainfrom
xueweic:main

Conversation

@xueweic
Copy link
Copy Markdown
Collaborator

@xueweic xueweic commented Sep 9, 2025

To reduce memory usage in LD-free mode, we pre-set LD = 1 instead of using a diagonal matrix. However, checking whether LD is in this simplified form using sum(LD) == 1 is computationally expensive. We optimized this by switching to length(LD) == 1, which provides the same logical check but with significantly reduced computational overhead.

To release the memory usage in LD-free mode, we pre-set LD = 1 instead of a diagonal matrix. However, using sum(LD) == 1 to check LD is pretty computational entensive. We changed to use length(LD) == 1 instead, which is saving a lot of computational time.
@xueweic xueweic requested a review from gaow September 9, 2025 04:21
@gaow gaow merged commit 159d775 into StatFunGen:main Sep 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants