refactor: 优化 NBPF 模块 - 缓存导入/合并重复方法/减少I/O
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled

- crypto.py: 8个_imp_*方法改为_ModuleCache类缓存导入
- crypto.py: outer/inner加解密合并为_layer_encrypt/decrypt
- crypto.py: 提取公共摘要计算方法,拆分长方法
- compiler.py: 删除_obfuscate_code中未使用的死代码
- loader.py: 3次ZIP扫描合并为1次缓存读取
- format.py: 更新为使用_ModuleCache
- 合计减少205行代码(1707→1502)
This commit is contained in:
2026-05-17 15:36:45 +08:00
parent 1736bb5801
commit e67d2d8ef6
20 changed files with 324 additions and 527 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NebulaShell v1.1.0 | 控制台</title>
<title>NebulaShell v1.2.0 | 控制台</title>
<style>
:root {
--bg: #ffffff;
@@ -147,7 +147,7 @@
<div class="container">
<header>
<h1>NebulaShell</h1>
<p class="subtitle">v1.1.0 安全全能发行版 · 企业级插件化运行时</p>
<p class="subtitle">v1.2.0 · 插件化运行时框架 · 多重签名加密分发</p>
</header>
<div class="status-bar">
@@ -158,11 +158,11 @@
</div>
<div class="status-item">
<span class="status-label">版本</span>
<span class="status-value">1.1.0</span>
<span class="status-value">1.2.0</span>
</div>
<div class="status-item">
<span class="status-label">活跃插件</span>
<span class="status-value">13</span>
<span class="status-value">5</span>
</div>
<div class="status-item">
<span class="status-label">运行时间</span>
@@ -204,7 +204,7 @@
</div>
<footer>
<p>NebulaShell v1.1.0 Security All-in-One Edition</p>
<p>NebulaShell v1.2.0 · Apache-2.0 License</p>
<p style="margin-top: 8px;">Built with ❤️ · MIT License</p>
</footer>
</div>