In this article, high temporal and spatial resolution schemes are combined to solve the Camassa-Holm and Degasperis-Procesi equations. The differential quadrature method is strengthened by using modified uniform algebraic trigonometric tension B-splines of order four to transform the partial differential equation (PDE) into a system of ordinary differential equations. Later, this system is solved considering an optimized hybrid block method. The good performance of the proposed strategy is shown through some numerical examples. The stability analysis of the presented method is discussed. This strategy produces a saving of CPU-time as it involves a reduced number of grid points.