计算机技术与发展2026,Vol.36Issue(9):31-36,6.DOI:10.20165/j.cnki.ISSN1673-629X.2026.0059
一种基于国产平台的Hyperscan优化方法
An Optimization Method of Hyperscan Based on Domestic Platform
摘要
Abstract
As a crucial tool for text matching,regular expressions play a significant role in the processing of network data.However,the open-source regular expression library Hyperscan exhibits relatively low matching efficiency on the Weixin H8000 platform,which limits its application in network data processing.To solve this problem,we propose a method based on single instruction multiple data instruc-tion-level optimization to enhance the matching performance of Hyperscan on the Weixin H8000 platform.The optimization method first analyzed the parallel characteristics of Hyperscan and in combination with the performance analysis tools of the Sunway platform,the hotspot functions affecting matching performance were identified.Secondly,for these hotspot functions,SIMD assembly instructions were manually embedded to optimize the key functions.Experimental results demonstrate that the regular expression matching performance on the Weixin H8000 platform has been improved by an average of 77%,significantly enhancing the efficiency of Hyperscan on this plat-form.This optimization method not only provides an effective solution for improving Hyperscan's performance on Sunway processors but also offers important support for the application and development of domestic processors in the field of network data processing.关键词
正则表达式/网络数据/Hyperscan/单指令多数据/性能分析工具/热点函数/汇编指令/申威处理器Key words
regular expression/network data/Hyperscan/single instruction multiple data/performance analysis tools/hotspot functions/as-sembly instructions/Sunway processor分类
信息技术与安全科学引用本文复制引用
王聪,曾安琪,季震宇,徐澍..一种基于国产平台的Hyperscan优化方法[J].计算机技术与发展,2026,36(9):31-36,6.基金项目
江苏省科技计划项目基金(SBE2023020404) (SBE2023020404)