Black Duck refines code search

26.10.2011
Black Duck Software has revamped its software code engine so that it indexes more quickly and filters the results, the company announced Wednesday.

Black Duck Code Sight 2.0, out now, is also the first version of the software to run on Linux servers, in addition to being able to run on Microsoft Windows servers.

Using Code Sight "is like searching on a regular search engine, but the content and indexing is specialized to code. We parse and index the raw source in code-specific ways to identify things like method definitions and classes," said Jim Berets, Black Duck vice president of product management.

Code Sight indexes all the code that is embedded in version control systems or that is otherwise available on an organization's network. It offers an interface for developers to search for chunks of code that they could consult or reuse in their own projects. The company is marketing the software to organizations with code reuse initiatives put in place to save money and time.

Code Sight can index code within many different types of version control systems, including Git, CVS (Concurrent Versions System), Mercurial, Subversion, AccuRev, IBM's ClearCase and Microsoft's Team Foundation Server. It can be accessed through the Eclipse or the Microsoft Visual Studio integrated developer environments, or with a browser.

This version of the software can index code bases four to six times as quickly as the old version did, according to the company. The improvement came about due to a number of reasons, Berets explained. When the company's developers ported the software from Microsoft Windows to Linux, they optimized the code in a number of places in a way that should make the program run more efficiently. They also migrated to the latest versions of the underlying search software, Apache Lucene and Solr.