feat: Add caching system and performance optimizations

- Add fast_fn module with global caches for PDA, ATA, and instruction operations
- Implement memory-efficient caches using CLRU and parking_lot for thread-safe access
- Optimize compute budget instruction generation with caching
- Replace std::sync::Mutex with parking_lot::Mutex for better performance
- Add dedicated caching for PumpFun PDAs and associated token addresses
- Improve transaction building with batch signature optimization
- Add new dependencies: clru, smallvec, parking_lot for cache infrastructure
- Remove unused utility functions in pumpfun module
- Enhance error messages for tip fee configuration validation
This commit is contained in:
ysq
2025-09-08 17:12:29 +08:00
parent 31b5e2855b
commit 93c133a9ea
12 changed files with 356 additions and 169 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
// pub mod address_lookup;
pub mod nonce_cache;
pub mod types;
pub mod address_lookup_cache;
pub mod subscription_handle;
pub mod bonding_curve;
pub mod fast_fn;
pub mod global;
pub mod nonce_cache;
pub mod subscription_handle;
pub mod types;
pub use types::*;