Space-charge interaction effect in ultrashort electron bunches is considered. It is shown that, along with the already known possibility of effective (first-order) temporal focusing, the time-depending electric fields offer the advantage of partial compensating for space charge effects in the bunch, which, in turn, seems most promising from the viewpoint of dynamic range increase in photoelectron tubes and diffractometers.