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

Make memory regions and metadata easier to use. #86

Open
marat1961 opened this issue Sep 17, 2021 · 0 comments
Open

Make memory regions and metadata easier to use. #86

marat1961 opened this issue Sep 17, 2021 · 0 comments

Comments

@marat1961
Copy link
Owner

marat1961 commented Sep 17, 2021

Make memory regions and metadata easier to use.

  1. Unify way to describe metadata used in collections.
    It would be convenient to have one object suitable for any type description.
    Scalar type, record, tuple of types, maybe an array.
  2. Now in the metadata there are two fields which are almost identical in purpose.
  • OnFree: TFreeProc;

  • FreeItem: TFreeItem;

  1. Why not store metadata as a linked list of records: type, size, number of nested items, offset.
    You could consider ways to store RTTI in Delphi, compilers.
  2. The metadata description structure should be clear, readable, easy to create, and optimized for fast data processing.
  3. There should be methods for clearing, assigning, and exchanging values, comparing values, hash generation, and popular serialization methods would also be useful.
  4. Metadata on the type and methods for working with it can be placed in an auxiliary structure.
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