In the current code, the constructor does too much work. I suggest to separate the actual construction of the class instance from initializing the object (i.e., hooking up methods).
If you're interested in that, I can provide a PR including an optimized class.
In the current code, the constructor does too much work. I suggest to separate the actual construction of the class instance from initializing the object (i.e., hooking up methods).
If you're interested in that, I can provide a PR including an optimized class.