2.4 Go 1.4 runtime
Go 1.4 runtime Gopher China 2015 1. Memory Allocator 2. Garbage Collector 3. Goroutine Scheduler 1. Memory Allocator 内存分配器 base on tcmalloc. 基于成熟方案,性能优秀。随着版本升级, 针对性改进,以期与垃圾回收器更好协作。 核心:自主管理,缓存复用,无锁分配。 阈值触发,并行标记,并发清理。 定期强制回收,释放物理内存。 版本升级,垃圾回收效率总是核心问题。 gogc. 阈值检查,或强制回收。 malloc next_gc 0 gogc runtime.gc() stop start mark sweep stop start mark sweep 0 2 2 1 forcegc 2m 1 mark. 暂停用户逻辑,并行标记。 scheduler thread processor goroutine max. 系统限制,允许调整。 runtime.GOMAXPROCS 调整 P 数量,会导致 G 任务队列重新分布。 M G P scheduler max = 10000 max = 256 runtime/debug.SetMaxThreads 超出限制,会导致进程崩溃。 newproc. 创建新并发任务。0 码力 | 29 页 | 608.57 KB | 1 年前3Rust 异步 Runtime 的兼容层 - 施继成
Rust 异步 Runtime 的兼容层 施继成 @ DatenLord Introduce what’s rust async runtime # Rust async runtime Analyze the reason of runtime isolation # Async runtime binding # Compatible layer 1 Create a wheel 2 3 # Rust async runtime 1 Light-weight task • Language and compiler define tasks • How to run it? • When to run it? • How does it deal with the I/O? Rust async runtime Runtime responsibilities it’s multi-thread model Rust async runtime Available Runtimes • Tokio • Async-std • Smol • Monoio Rust async runtime # Async runtime binding 2 Which runtime to choose ? • More adopters • Rich0 码力 | 22 页 | 957.41 KB | 1 年前3Designing an ultra low-overhead multithreading runtime for Nim
Designing an ultra low-overhead multithreading runtime for Nim Mamy Ratsimbazafy mamy@numforge.co Weave https://github.com/mratsim/weave Hello! I am Mamy Ratsimbazafy During the day blockchain/Ethereum multithreading: definitions and use-cases ◇ Parallel APIs ◇ Sources of overhead and runtime design ◇ Minimum viable runtime plan in a weekend 4 Understanding the design space Concurrency vs parallelism hardware threads The same distinctions can be done at a multithreaded language or multithreading runtime level. The problem 8 How to schedule M tasks on N hardware threads? Latency vs Throughput0 码力 | 37 页 | 556.64 KB | 1 年前3Testing Compile-time Constructs Within a Runtime Unit Testing Framework
company. Ⓡ © 2021 Apex.AI, Inc. Igor Bogoslavskyi Testing the compilability of the code at runtime© 2021 Apex.AI, Inc. Errors have a high cost, so rigorous testing is a must We use increasingly0 码力 | 50 页 | 1.37 MB | 5 月前3Nim - the first high performance language with full support for hot codereloading at runtime
with full support for hot code- language with full support for hot code- reloading at runtime reloading at runtime by Viktor Kirilov 1 Me, myself and I Me, myself and I my name is Viktor Kirilov - fine-tuning values interactive (REPL-like): very useful for exploration and teaching Runtime compilation - WHY Runtime compilation - WHY 33 replacing entire functions: using shared libraries OR hot-patching: https://github.com/ddovod/jet-live http://bit.ly/runtime-compilation-alternatives cling inspector Jupiter RCRL Runtime compilation for C/C++: HOW Runtime compilation for C/C++: HOW 34 Replace "compiling"0 码力 | 63 页 | 2.91 MB | 1 年前3PyArmor Documentation v8.5.10
package data files 1.3.5. Checking runtime key periodically 1.3.6. Binding to many machines 1.3.7. Using outer file to store runtime key 1.3.8. Localization runtime error 1.3.9. Packing obfuscated scripts 4.7. Internationalization runtime error message 1.4.8. Generating cross platform scripts 1.4.9. Obfuscating scripts for multiple Python versions 1.4.10. Using shared runtime package 1.5. Customization Customization and Extension 1.5.1. Changing runtime package name 1.5.2. Appending assert functions and modules 1.5.3. Using plugin to fix loading issue in darwin 1.5.4. Using hook to bind script to docker id 1.50 码力 | 193 页 | 154.05 KB | 1 年前3PyArmor Documentation v6.3.1
object to protect constants and literal strings. Obfuscate co_code of each function (code object) in runtime. Clear f_locals of frame as soon as code object completed execution. Verify the license file of obfuscated PyUpdater Binding obfuscated scripts to Python interpreter Customizing cross protection code Storing runtime file license.lic to any location Register multiple pyarmor in same machine How to get license information config build info check banchmark register download runtime Understanding Obfuscated Scripts Global Capsule Obfuscated Scripts Bootstrap Code Runtime Package The License File for Obfuscated Script Key0 码力 | 161 页 | 124.89 KB | 1 年前3PyArmor Documentation v6.2.7
object to protect constants and literal strings. Obfuscate co_code of each function (code object) in runtime. Clear f_locals of frame as soon as code object completed execution. Verify the license file of obfuscated PyUpdater Binding obfuscated scripts to Python interpreter Customizing cross protection code Storing runtime file license.lic to any location Register multiple pyarmor in same machine How to get license information config build info check banchmark register download runtime Understanding Obfuscated Scripts Global Capsule Obfuscated Scripts Bootstrap Code Runtime Package The License File for Obfuscated Script Key0 码力 | 159 页 | 123.91 KB | 1 年前3PyArmor Documentation v6.4.4
code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 i 3.22 Storing runtime file license.lic to any location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.14 runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 7.4 Runtime Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 167 页 | 510.99 KB | 1 年前3PyArmor Documentation v6.2.8
protection code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.21 Storing runtime file license.lic to any location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.14 runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.4 Runtime Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 153 页 | 483.38 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100