Expand description
PumpFun 极限优化解析器 - 微秒/纳秒级性能
优化策略:
- 零拷贝解析 (zero-copy)
- 栈分配替代堆分配
- unsafe 消除边界检查
- 编译器自动向量化 (target-cpu=native)
- 内联所有热路径
- 编译时计算
- 内存预取 (CPU cache optimization)
Modules§
- discriminators
- PumpFun discriminator 常量 (编译时计算)
Functions§
- get_
event_ type_ fast - 快速判断事件类型 (只解析 discriminator)
- is_
event_ type - 检查是否为特定事件类型 (SIMD 优化)
- parse_
buy_ exact_ sol_ in_ from_ data - Parse only PumpFun BuyExactSolIn events from pre-decoded data
- parse_
buy_ from_ data - Parse only PumpFun Buy events from pre-decoded data
- parse_
create_ from_ data - Parse PumpFun Create event from pre-decoded data
- parse_
log - 主解析函数 (极限优化版本)
- parse_
migrate_ from_ data - Parse PumpFun Migrate event from pre-decoded data
- parse_
sell_ from_ data - Parse only PumpFun Sell events from pre-decoded data
- parse_
trade_ from_ data - Parse PumpFun Trade event from pre-decoded data