Accelerating Code Search with Deep Hashing and Code Classification

15Citations
Citations of this article
55Readers
Mendeley users who have this article in their library.

Abstract

Code search is to search reusable code snippets from source code corpus based on natural languages queries. Deep learning-based methods on code search have shown promising results. However, previous methods focus on retrieval accuracy, but lacked attention to the efficiency of the retrieval process. We propose a novel method CoSHC to accelerate code search with deep hashing and code classification, aiming to perform efficient code search without sacrificing too much accuracy. To evaluate the effectiveness of CoSHC, we apply our method on five code search models. Extensive experimental results indicate that compared with previous code search baselines, CoSHC can save more than 90% of retrieval time meanwhile preserving at least 99% of retrieval accuracy.

Cite

CITATION STYLE

APA

Gu, W., Wang, Y., Du, L., Zhang, H., Han, S., Zhang, D., & Lyu, M. R. (2022). Accelerating Code Search with Deep Hashing and Code Classification. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 2534–2544). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2022.acl-long.181

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free