|
看了AMX0.99后,添加了JIT是干什么的?
About the JIT:
The Just-In-Time compiler has been introduced in AMX 0.9.9. It allows 10+ times faster plugin execution.
For the curious ones that would wonder how it works: your .sma plugins are compiled to .amx files with the sc compiler. The .amx files are Abstract Machine eXecutables: they contain bytecode (instructions that has to be interpreted). Before AMX Mod 0.9.9, the only way to run plugins was to interpret their bytecode constantly, and this was consuming much resources. Now thanks to the JIT, the .amx plugins are compiled at load time to instructions that can be sent directly to the processor, no longer needing the (slow) interpreter. Plugins run faster, and your server will no longer suffer high stress when you declare many.
这东西除了让插件的执行效率更高外,我希望得到更多关于JIT的说明 |
|