gpt4 book ai didi

monodevelop - MonoDevelop 的 .pidb 文件是什么?

转载 作者:行者123 更新时间:2023-12-03 06:37:38 26 4
gpt4 key购买 nike

MonoDevelop 为每个项目创建这些。我应该将它们包含在源代码管理中吗?

最佳答案

来自MonoDevelop blog post :

There were several long time pending bug reports, and I also wanted to improve a bit the performance and memory use. MonoDevelop creates a Parser Information Database (pidb) file for each assembly or project. This file contains all the information about classes implemented in an assembly, together with documentation pulled from Monodoc. A pidb file has trhee sections: the first one is a header which contains among other things the version of the file format (that version is checked when loading the pidb, and the file will be regenerated if it doesn't match the current implementation version). The second section is the index of the pidb file. It contains an index of all classes in the database. The index is always fully loaded in memory to be able to quickly locate classes. The third section of the file contains all the class information: list of methods, fields, properties, documentation for each of those, and so on. Each entry in the index has a file offset field, which can be used to completely load all the information of a class (the index only contains the name).

所以听起来这实际上只是一种优化。我个人不会将其包含在源代码管理中,除非您发现它对性能有很大差异:我的猜测是,只有在一次只有一个人从事该项目的情况下,它才会真正保持有效。 (如果它很大并且定期更改,您可能会发现它也会给存储库增加大量开销。我还没有检查过它的实际大小,但值得检查。)

关于monodevelop - MonoDevelop 的 .pidb 文件是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1022111/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com