AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Efficient synchronization strategy in ScriptExecutor #11

Open anatoliykmetyuk opened 10 years ago

anatoliykmetyuk commented 10 years ago

Right now, ScriptExecutor operates on several collections that can interact with threads other then the VM thread and, therefore, require heavy synchronization while accessing this collections. This issue is not critical, but may impact performance, as well as make the code less structured and more chaotic. Therefore, it's important to develop as lightweight synchronization strategy as possible (ideally - one synchronization per VM event loop cycle) and implement it.

AndreVanDelft commented 10 years ago

The synchronization is in