%0 Conference Proceedings %T Accelerating Code Search with Deep Hashing and Code Classification %A Gu, Wenchao %A Wang, Yanlin %A Du, Lun %A Zhang, Hongyu %A Han, Shi %A Zhang, Dongmei %A Lyu, Michael %Y Muresan, Smaranda %Y Nakov, Preslav %Y Villavicencio, Aline %S Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) %D 2022 %8 May %I Association for Computational Linguistics %C Dublin, Ireland %F gu-etal-2022-accelerating %X 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 methodon 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. %R 10.18653/v1/2022.acl-long.181 %U https://aclanthology.org/2022.acl-long.181 %U https://doi.org/10.18653/v1/2022.acl-long.181 %P 2534-2544