Open Tech Press | CscopeとSilentBobによるソースコードの解析
驚きの記事(下線筆者):
Open Tech Press | CscopeとSilentBobによるソースコードの解析:
SilentBobは構文解析を利用してソースファイルを解析する。そのため、正規表現を利用してマッチする行をファイルから探し出すExuberant Ctagsのようなユーティリティよりも高速な解析が行える。試しにLinuxカーネル(バージョン2.6.19)を解析させたところ、Exuberant Ctagsではタグテーブルの生成に90秒かかったが、SilentBobでは10秒しかかからなかった(いずれも2.6MHzのCerelonマシンで実行)。また、SilentBobは、マルチスレッド処理による最適化にも対応している。
2.6MHzのCerelonマシン!
急いで原文をみると(下線筆者):
Linux.com | Using Cscope and SilentBob to analyze source code:
SilentBob uses syntax analysis to parse source files, which makes it faster than a utility like Exuberant Ctags, which uses regular expressions to locate the appropriate line in a file. In a test run on the sources for the Linux kernel (version 2.6.19) Exuberant Ctags generated the tags table in 90 seconds, while SilentBob did its job in 10 seconds (on a 2.6MHz Celeron). SilentBob also supports multithreading optimizations.
誤訳ではない。
コメントを残す