why "require 'prawn'" adds two threads?

22 views
Skip to first unread message

matko...@gmail.com

unread,
Jun 3, 2017, 9:42:44 AM6/3/17
to Prawn
During profiling with ruby-prof I discovered that just adding "require 'prawn'" to ruby script spawns two additional threads. Why? How one may get rid of them?

minimum reproducible script: file with 'require 'prawn''.

Alexander Mankuta

unread,
Jun 3, 2017, 9:48:00 AM6/3/17
to Prawn
Prawn doesn't use threads directly. The closest it comes to using threads is using a Mutex. Maybe that uses threads internally.

--
Regards,
Alex

Reply all
Reply to author
Forward
0 new messages