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

Improve memory efficiency of Modal C0 Bases #936

Open
ericneiva opened this issue Aug 21, 2023 · 0 comments
Open

Improve memory efficiency of Modal C0 Bases #936

ericneiva opened this issue Aug 21, 2023 · 0 comments

Comments

@ericneiva
Copy link
Member

Leaving a record here of the issue raised by @pmartorell in this PR of GridapEmbedded. Quoting @pmartorell:

I have found an important bottleneck in memory consumption related with the usage of CompressedArray in both modal C0 basis and moment fitting measures. It seems that Gridap is not efficient with CompressedArray with a large amount of values, e.g., CompressedArray(vals,1:length(vals)). The usage of flat arrays instead will reduce the memory consumption up to one order of magnitude.

A possible optimization would accommodate the Gridap constructors of CellQuadrature and FESpaces to flat arrays of quadrature and reference FEs, respectively. It is probably better to include this optimization in another PR.

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

No branches or pull requests

1 participant