#1556 ReferenceElements: Seperate cache from factory
Metadata
Property | Value |
---|---|
Reported by | Jö Fahlke (jorrit@jorrit.de) |
Reported at | Jan 21, 2015 15:41 |
Type | Feature Request |
Version | 2.3 |
Operating System | Unspecified / All |
Description
The current approach of coupling the cache and the factory of reference elements is problematic. There is only one implementation of the cache, but for certain applications other implementations may be more suitable. E.g. it might be more quitable to use one cache per thread instead of a global cache. There is now way to clear the cache to free up memory. Once one reference element is requested, all reference elements of the same dimension are generated, which can result in quite high memory usage for higher dimension -- Martin Nolte reports ~2GB for dim=10.
There are some opinions in #1544 (closed), starting at #1544 (comment 10627). There is a similar report for QuadratureRules in #1555.