I cannot believe that a prototype of the proposed MIB compiler is now working on my computer. And during the process of developing it, I merely added a few new classes and methods, but no API change was made since Change Set. Nice, I think Steve is happy to hear this.
All Net-SNMP MIB files was compiled to *.module files a few minutes ago, and now the 1000+ MIB documents are being processed. Although the compiling still takes a long time, I expect that the browser can load 1000+ *.module files in a few seconds. If later I can prove this, then I think I have already solved the performance issue and go beyond my original design of the browser and the library.
In the old design,
- Net-SNMP MIB documents are bundled in the library and parsed every time a ObjectRegistry is created.
- The browser accepts MIB documents directly, and parses them every time to form a tree.
- Only *.module files are needed by the library to create a basic tree.
- The browser can use *.module files by default, and compile MIB documents to *.module files whenever a new document is added.

0 comments:
Post a Comment