You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, since parsing the AST depends upon db's @table and @meta instance variables, putting the parsing into threads via parallel meant that those instance variables were not shared across threading contexts. Unwinding this is probably possible, but wasn't dead-simple. I think using https://github.com/ruby-concurrency/concurrent-ruby may require less surgery within starscope.
In practice I've found, for very large ruby projects, #95 and #154 dominate as performance issues anyway. If I had the time to do performance surgery, that's where I'd start.
Perhaps via https://github.com/grosser/parallel or some other gem.
Parsing files (in particular large Ruby files) is slow, so parallelizing it would be a big speed-up on multi-core systems.
The text was updated successfully, but these errors were encountered: