I'm running a simulation where I'm pumping charge into a capacitor to generate a voltage. A transistor emitter/source is connected to the positive rail and the collector/drain is connected to a 1 nF cap through a 47k resistor. When the base/gate is driven high to shut off the current I see the current go up initially then taking almost 2 us to shut off. I've tried 2N3906 and BSS84 and a couple others selected randomly. The switching period is around 8 uS.
Is this from the parasitic capacitance in the transistor? The BSS84 only has 1 nC gate charge and still the effect is very pronounced.
Is there a way to mitigate this effect other than using a larger cap and smaller resistors?