Replies: 4 comments
-
💡, I will let the constructor of HTML class require a set of names of tags whose contents will be saved in memory, for all other tags there contents will be directly omitted. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This will be needed in generating orbitals. It will be solved later. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe Current Status and Possible Solution
Background
Problem
the C++ STL has non-negligible extra memory cost (including std::vector, std::map, etc), this will bring about unexpected memory cost problem to the overall program. To reproduce, use the toy HTML parser I write to parse UPF-formatted pseudopotential file. Although in principle the speed of accessing data will be higher, but memory cost now is terribly high.
html_parser.zip
Possible solution
Build containers by ourselves, so as to avoid extra memory cost by redundant functions and data.
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions