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

Take advantage of the type index offset data #139

Open
jrmuizel opened this issue Jul 26, 2022 · 3 comments
Open

Take advantage of the type index offset data #139

jrmuizel opened this issue Jul 26, 2022 · 3 comments

Comments

@jrmuizel
Copy link
Collaborator

jrmuizel commented Jul 26, 2022

From LLVM:

/// Type streams in PDBs contain an additional field which is a list of pairs
/// containing indices and their corresponding offsets, roughly every ~8KB of
/// record data.  This general idea need not be confined to PDBs though.  By
/// supplying such an array, the producer of a type stream can allow the
/// consumer much better access time, because the consumer can find the nearest
/// index in this array, and do a linear scan forward only from there.
@jrmuizel
Copy link
Collaborator Author

@mstange
Copy link
Collaborator

mstange commented Jul 26, 2022

ItemFinder currently builds such an index -> offset map itself (in the positions Vec). It would be great if it could use this existing table.

@DrChat
Copy link

DrChat commented Mar 17, 2023

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

3 participants